def cheer( phrase = 'Yay!', times = 1 ): for i in range( 0, times ): print( phrase ) cheer( 'Hooray', 3 ) # Hooray 3 times cheer( 'Hooray!', 1 ) # Hooray! once cheer( ) # Yay! once cheer( 'Hip hip hooray!' ) # once cheer( times=5 ) cheer( 5 ) cheer( times=2, phrase='Oh my!' ) # ☹ confuse humans -- order wrong