''' Purpose: demonstrate optional parameters ''' # we can have optional parameters! # structure: # variable_name # = # the default value of that variable # optional means that if you do not pass in an actual value during invocation, these are the default values def chant( msg='Wahoo Wa', n=3 ) : ''' Prints string parameter msg, n times ''' # n = 3 by default if passed in nothing for n for i in range( 0, n ) : print( msg ) # msg will be "Wahoo Wa" if nothing is passed in for msg return if ( __name__ == '__main__' ) : import mater # use the tester file --> get the tester function mater.test_chant()