def myfunc(): x = 300 def myinnerfunc(): print(x) myinnerfunc() myfunc()