# M.py X = 66 # global def f1(): global X X = 77 print(X) # global f1() print(X) # global ------------------------------------- # O.py X = 11 def f1(): global X X = 2 def f2(): global X X = 3