#Global test x = 0 print(x) def myfunc(): global x x = 1 print(x) myfunc()