In This Chapter
• Learn how functions help you better organize and group your code
• Understand how functions make your code reusable
• Discover the importance of function arguments and how to use them
So far, all of the code we’ve written contained virtually no structure. It was just...there:
To highlight this, let’s say we want to display the distance something has traveled (see Figure 3.1).