#------------------------------------------------------------------------------- # Module2.py #------------------------------------------------------------------------------- var1=-3 var2=20 def func1(): return 'happy' # end func1() def func2(): return var1+var2 # 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 Module2, __name__ =', __name__) # import Module1