Python: Tracing Lists and Dictionaries

A full lesson on tracing Python lists and dictionaries by hand, with two worked programs and three guided traces. Then students predict the output of three programs, explain their choices and write a function of their own.

First page of the worksheet “Python: Tracing Lists and Dictionaries”
Download PDF

For members. Join for $119.88 a year to download every Grade 11 worksheet.

Subject
Technology
Skill
Trace and write Python code that uses lists and dictionaries
Time
About 75 minutes
Includes
15 questions, answer key, teaching notes

Standards

  • CSTA 3A-AP-14

    Use lists to simplify solutions, generalizing computational problems instead of repeatedly using simple variables.

  • CSTA 3B-AP-12

    Compare and contrast fundamental data structures and their uses.