Exercises from Zelle's Python Chapter 4