Read this for more on functions.
Chapter 3 Functions
In the context of programming, a function is a named sequence of statements that performs a computation. When you define a function, you specify the name and the sequence of statements. Later, you can “call” the function by name.
Source: Green Tea Press, http://greenteapress.com/thinkpython2/html/thinkpython2004.html
This work is licensed under a Creative Commons Attribution-NonCommercial 3.0 License.