Introduction
Functions are handy because:
they automate repetitive tasks.
have a name that makes the purpose very clear
you only need to update the code in one place as things change
it’s safer than copy and paste - you won’t replicate errors
The common theme for functions is to be consistent.