python area of schop code example
Example: how does scope work in python
a = 5
b = 3
def f1():
a = 2
print(a)
print(b)
print(a) # Will print 5
f1() # Will print 2 and 3
a = 5
b = 3
def f1():
a = 2
print(a)
print(b)
print(a) # Will print 5
f1() # Will print 2 and 3