Completes worksheet 2.2.4 for the Python Tutorial