Function Essentials

Function Template:

def function_name(parameter_1, parameter_2,...):
    #statements for process
    return .... 

Before start defining a function, always ask the following question:

1. Input (parameters. How many? What are they?) can have 0 or more parameters.

2. Process (calculation, assignment, operations....)

3. Output (Return value / display result)

Last modified: Sunday, 27 May 2018, 12:47 PM