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