def foo(): print "\ncalling foo()..." bar = 200 print "in foo(), bar is", barbar = 100print "in __main__, bar is", barfoo()