Completed worksheet 2.2.5 for the Python Tutorial