Completing the exercises in Zed Shaw's "Learn Python the Hard Way"