Save function result into a variable
def times(x, y): # create and assign function return x * y # body executed when called x = times(3.14, 4) # save the result object print x
1. | Define function: return int value | ||
2. | Return more than one parameters | ||
3. | A Simple function definition: return a tuple. | ||
4. | Return three value |