PYTHON:Learn Python the Hard Way: exercise #35