Practice drills from learning python the hard way