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