When is it a good idea to create a function?
It's a good idea to write a function when we need to use a piece of code multiple times.