Completes worksheet 2.2.2 for the Python Tutorial