JustCaptain kod-buduschego
a8f57e3b0908bc3333dc3d5c7a2fbd787fa9c317
Перейти к файлу
Код
kod-buduschego Python 2025-20262.6. Цикл Forpracticeschatgpt2task_6.py
anc update c70a58f 8 октября 2026 г.
task_6.py
profits: list[int] = [200, -50, 300, -20, -100, 400]
count: int = 0

for profit in profits:
    if profit < 0:
        count += 1

print("Loss days: {}".format(count))