JustCaptain kod-buduschego
0c215d6bd3ad548a5cf5fee4d168ffd04adaac92
Перейти к файлу
Код
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))