Python scope
# Local Scope
# A variable created inside a function belongs to the local
# scope of that function, and can only be used inside that function
#A variable created inside a function is available inside that function:
def myfunc():
x = 300
print(x)
myfunc()
# A variable created outside of a function is global and can be used by anyone:
x = 300
def myfunc():
print(x)
myfunc()
print(x)