<filename>src/examples/a_example/main.py
num = 20  # outer variable

def use_local_variable(num):
    num = 10  # inner variable
    print(num)

print(use_local_variable(num))
print(num)

<filename>src/examples/a_example/main.py
num = 20  # outer variable

def use_local_variable(num):
    num = 10  # inner variable
    print(num)

print(use_local_variable(num))
print(num)

# outer variable # inner variable