JustCaptain kod-buduschego
f1849d7f7b7914524e1324ccc17ef5403a17b1c1
Перейти к файлу
Код
kod-buduschego Python 2025-20262.6. Цикл Forpracticeschatgpt1task_2.py
anc update c70a58f 8 октября 2026 г.
task_2.py
database: list[int] = []
step: int = int(input("Кол-во заказов: "))
count: int = 0
for _ in range(step):
    print(_)
    sale: int = int(input("Стоимость заказа: "))
    if sale > 100:
        count += 1

print("КОЛ-ВО ЗАКАЗОВ ДОРОЖЕ 100 ЕВРО = {}\nКОЛ-ВО ЗАКАЗОВ: {}".format(count, step))