Quick actions

cmd+k|ctrl+k

Navigation

Languages

nonlocal nested

Snippet info

Language

Python

Visibility

public

Author

chanronny48

Created

2025-04-16T07:14:12.581727Z

Updated

2025-04-16T07:14:12.581727Z

h=10
def b():
    def c():
        def d():
            nonlocal a
            a=100
            print(a,h)
        d()
    b=1
    a=2
    print(a)
    c()
b()
INFO