April 2017
Beginner to intermediate
312 pages
7h 23m
English
Functions can perform a set of defined operations and finally return a value at the end. Let's consider the following example:
def square(a): return a**2
In this example, the function returns a square of the argument. In Python, the return keyword is used to return a value requested upon completion of execution.
Read now
Unlock full access