Python Functions
Mathematical functions can be reprsented as Python functions. However, there is a panoply of Python functions that are not mathematical functions. However, careful crafting of programs can cause many of your functions to be mathematical functions. This is desirable; understanding their actions and debugging with them is much simpler than with their messy brethern.
Let's begin with some examples.
inputs, parameters, and arguments
returning an output
side effects
A Very Un-Mathematical Function, input
The Life Cycle of a Functon Call
Scoping, or What Stays in Las Vegas