What You Learned

At this point you should be pretty confident in your abilities. You’ve mastered conditional logic, you know how to use functions, and now you can make parts of your programs repeat. You can even trap bad input. Many of the previous programs in this book can benefit from what you’ve learned, so before moving on, modify a few of those programs. Perhaps start by preventing invalid input on some of the calculation programs.

This chapter was short because you really can’t do a lot of real-world problems without first understanding data structures like arrays. And so that’s what the next chapter is all about. Let’s go!

Get Exercises for Programmers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.