python:Hardway:Ex24: More practice