Functions ¶
Functions are reusable pieces of programs. They allow you to give a label to a group of Python code, allowing you to run that block by using its name anywhere. If you are new to programming in general, you may find PySnack useful as a toy, conceptual example to understand functions. For a more academic (and perhaps less fun) introduction, continue below.