Chapter 4

Functions, Loops, and Logic

Functions help us organize our code in a way that’s reusable, and accept arguments and defaults where needed. Loops let us take action on collections of items. Boolean logic allows us to control the execution flow of our program.