Python Tutorial #3

#File: myFunctions.py # Purpose: two programmer-defined functions. def cube( y ): return y * y * y. def doubleIt ( z ): return 2 * z # Purpose: Example: importing programmer-defined functions # from its own module file # IMPORTANT: myFunctions.py should be in the same folder as this file. import myFunctions. print ("1 to 5 cubed") ................
................