JustCaptain kod-buduschego
bb03bcdc780611e5fa808dc647b9a71eb07c292d
Перейти к файлу
Код
kod-buduschego Python 2025-20262.6. Цикл Forpracticeschatgpt2task_9.py
anc update c70a58f 8 октября 2026 г.
task_9.py
orders: list[int] = [120, 340, 80, 500, 270, 60, 310]
top_orders: list[int] = []

for order in orders:
    if order > 250:
        top_orders.append(order)

    if len(top_orders) >= 3:
        break

print("Top orders: {}".format(top_orders))