JustCaptain kod-buduschego
a8f57e3b0908bc3333dc3d5c7a2fbd787fa9c317
Перейти к файлу
Код
task_7.py
def count() -> None:
    count: int = 0

    def add_count() -> None:
        nonlocal count
        count += 1

    add_count()
    add_count()
    add_count()
    print(count)


count()