Exercises and tests found in the book Python Programming by John Zelle