Functions - Tom Kleen

#In this example function has one numeric parameter, function doesn’t have return value. #function definition. def . mantra ( n ): counter =0. while counter < n: print “I love Python “ counter = counter +1. #main program. num = input (“please enter the number “) #function call. mantra (num) Example 3: ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download