In this chapter, we have seen that functions are a powerful tool we can use to organize and structure our code to make it more readable and reusable.
We saw how functions have a name, and that name can be used to call them. Calling a function makes the code inside it to execute. This is something we can do over and over again as often as we need to.
Sometimes, we want functions to produce a value as a result of its operations. In those cases, we can let the function return something. We can then use that value in the location where we called the function.
Then, we learned that we can also pass data into a function. This can be done using function arguments. The function receives these arguments in local variables called parameters.
With the introduction of functions, we also have the concepts of variables being either global or local. We saw that global variables can be accessed from any location within the program and local variables can only be used within the...