May 2018
Intermediate to advanced
380 pages
9h 37m
English
Because it is important to understand how functions work when we deal with decorators, we'll take a quick look at them. First, we need to remember that everything in Python is an object, including functions.
Functions are created in Python by using the def keyword and naming the function; input arguments are optional. Following is a basic function for reference:
def func_foo(): pass