//moda.pyX = 88 # my X: global to this file onlydef f(): global X # change my X X = 99 # cannot see names in other modules////////////////////////////////////////////////////////////////////Main.pyX = 11 # my X: global to this file onlyimport moda # gain access to names in modamoda.f() # sets moda.X, not my Xprint X, moda.X
Name (required)
email (will not be published) (required)
Website