demo_scope3.py:
x = 300 def myfunc(): print(x) myfunc() print(x)
C:\Users\My Name>python demo_scope3.py
300
300