Scope Rules
total=0
def new(total):
total+=1
return total
print(new(new(new(total))))
# 1 Start with local
# 2 Parent local
# 3 Global
# 4 Built in python functions.
INFO
total=0
def new(total):
total+=1
return total
print(new(new(new(total))))
# 1 Start with local
# 2 Parent local
# 3 Global
# 4 Built in python functions.