""" Purpose: help introduce tester statement if ( __name__ == '__main__' ) """ def f() : """ Purpose: be a function """ return 1112 # test function f() # result = f() # print( 'testing result:', result ) # tl;dr: this block of code will only run when you run im_a_module.py directly, not when it is imported # print( "__name__ = " , __name__ ) # all future modules will contain a statement like this that calls the tester so you don't have to switch back and forth # you will not have to write this, just understand basically what is happening # this just allows us to use modules more dynamically and is really really useful in the testing/development process if ( __name__ == '__main__' ): # __name__ is a built in python variable. import im_a_tester_program # it is set to the string '__main__' if # you are running the file as a program # it is set to the name of the file if # the file is being imported