# # firstExampleFunction2.py # Author: James Tam # Version: August 19, 2010 # A redesigned version of the program that defines an explicit main function. # Note: this approach requires an explicit call to the main function! def displayInstructions (): print "Displaying instructions" print "The statements in this function will typically be used to give a" print "high level overview of what the program as a whole does." # main function def main (): displayInstructions() print "End of program" # It is cruicial that this step be included! main ()