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