Think Python Chapter 9 Exercises