Functions
What Are Functions?
Functions are blocks of code that perform a given task any time they are called.
A function could process one action a single time and move on to the next block of code in the script, or it could iterate through itself multiple times (infinitely if you wrote it that way).
In Python, your declare a function with the reserved keyword def
- which defines the function.