Functions are groups of code that can be “called” to run within a program. As demonstrated before, they help organize code so that it is easy to understand. Functions are efficient, as they can be created once and then called within your code as needed—or even copied and included in another sketch.

You have used functions in previous activities: “setup()” and “loop()”. In this activity you will create functions and learn how to “call” them from other areas of your code.