#global scope
n = 2

def f():
    # local scope
    n = 1
    print("local", n)
f() # => 1
print("global", n)

47d1772c2ea3a05cfc06882173dbc6b70ebf5f60
<mask token>

<mask token>


def f():
    n = 1
    print('local', n)


<mask token>

<mask token>


def f():
    n = 1
    print('local', n)


f()
print('global', n)

n = 2


def f():
    n = 1
    print('local', n)


f()
print('global', n)

#global scope
n = 2

def f():
    # local scope
    n = 1
    print("local", n)
f() # => 1
print("global", n)
