''' Purpose: help introduce tester statement if ( __name__ == '__main__' ) ''' print( "Going to import im_a_module ") import im_a_module # im_a_module also prints __name__ and in that one # that's not the program we're running currently! We're currently running # im_a_tester so that's why it prints out the module name (im_a_module) # and then afterwards at the bottom of THIS program well # we're in the program we're running! so __name__ is __main__ ! # If we don't just print(__name__) in that program, then we're not in that program # running that program, therefore we don't see __name__ printed when we import # im_a_module. print( "Just imported im_a_module!" ) result = im_a_module.f() print( "im_a_module.f():", result ) print( __name__ ) # If you're inside a program # this built in variable name __name__ gets set to __main__