#------------------------------------------------------------------------------- # Module1.py #------------------------------------------------------------------------------- var1=6 # module attribute var2=10 # " def func1(): # " return 13 # end func1() def func2(): # " print(var1+var2) return 8 # end func2() # Uncomment the lines below, then run in both interactive and script mode. # You'll see that __name__ depends on how a module is run. # print('in Module1, __name__ =', __name__) # import Module2