Start Exercise 6 in Chapter 9 of Think Python
Start Exercise 7 in Chapter 9 of Think Python