Introduction
Functions help us group instructions together to do a specific job. This makes our code easier to read and reuse.
When you want to repeat a task many times without writing the same code again.
When you want to organize your code into small, clear parts.
When you want to give a name to a set of instructions to use later.
When you want to make your program easier to test and fix.