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