# count = 0
# sum = 0
# while count < 100:
#     count += 1
#     sum += count
#     print(count,sum)


# str1 = "milk"
# i = 0
# while i <= len(str1):
#     print(str1[i:])
#     i = i + 1


# import random
# i = 0
# sum = 0
# secret = random.randint(1,100)
# print(secret)
# while i < secret:
#
#     i = i + 1
#     sum = sum + i
#
# print(sum)

# i = 0
# result = 0
# while i < 10:
#     result = i * 2
#     print(i,result)
#     i = i +1

# Максимальное число
# import random
# i = 0
# secret = 0
# j = 0
#
# while i < 10:
#     secret = random.randint(1,1000)
#     print("Случайное число",secret,'под номером:', i)
#     if secret > j:
#         j = secret
#     i += 1
# print("Максимальное число:", j)

# Минимальное число
# import random
# i = 0
# secret = 0
# j = 1000
#
# while i < 10:
#     secret = random.randint(1,1000)
#     print("Случайное число",secret,'под номером:', i)
#     if secret < j:
#         j = secret
#     i += 1
# print("Минимальное число:", j)


# years = 5
# money = int(input())
# percentage = 10
# i = 0
# while i < years and money > 0:
#     i += 1
#     money = money + (money * percentage / 100)
# print(money)


# years = 5
# money = int(input())
# percentage = 10
# i = 0
# if money > 0:
#     while i < years:
#         i += 1
#         money = money + (money * percentage / 100)
#     print(money)
#
# else:
#     print("Недопустимая сумма!")


# i = 0
# while i < 1000000:
#     i += 1
#     print(i)


# list1 = ["johny", "frank", "steven", "maria", "donald", "barak", "freddy"]
# criminal = input("Enter prestupnick's name: ")
# i = 0
# while i < len(list1):
#     if criminal in list1:
#      if criminal == list1[i]:
#         print("Адрес преступника:", i)
#     else:
#         print('Не найден!')
#         break
#
#     i += 1

# Весь список с шагом()
# my_list = ['honda', 'bmw', 'mercedes', 'bugatti']
# numbers = 1,2,3,4,5,6,7,8,9
#
# print(numbers[::4])


# list1 = [1, 2, 3]
# list2 = list1.copy()
# del list1[0]
# print(list2)


# my_list = ['honda', 'bmw', 'mercedes', 'bugatti']
# numbers = [1,2,3,4,5,6,7,8,9]
#
# print(numbers[::-2])



