ABSTRACT

A program is usually partitioned into modular units, and in Python, these are modules, classes, and functions. A function is the most fundamental module or decomposition unit in Python programs. When called (invoked), a function carries out a specific task in a program and can receive input data from another function; these input data are known as arguments. The function can also return output data when it completes execution.