Functions

Function (aka method) is a user defined miniprogram within a program. Instead of writing the same code multiple times a function can be defined, and code-reuse is possible.

Example:

def hello():
    print('Howdy!')

hello()

First line is a def statement , the code block following is the function body and hello() is a function call .

See also #