Functions in Python
Functions allow computer scientists to define a set of instructions that can be reused throughout a program.
Let’s talk through an example of the use of a function in real life: brushing teeth. To brush our teeth, there are specific steps that we must follow in order to successfully brush our teeth.
1. Take out our toothbrush
2. Wet the toothbrush
3. Take out our toothpaste
4. Put the toothpaste on the toothbrush