starting out with python 4th edition chapter 6 programming exercises