**Examples of functions
In Python, functions and classes are both objects:
Functions can be passed as arguments to another function. Such function that take other functions as arguments are called higher order functions:
Nested functions
The function that is nested is said to be decorated. Generally, we decorate a function and assign it with the same name:
Uing @
:
which is equivalent to: