Exercises from "Beginning Python" book