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