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