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