Python: Tracing Lists and Dictionaries

Students read short Python programs that use lists and dictionaries, predict the exact output by tracing by hand, choose the right data structure for a task and write a short function of their own.

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

For members. Join from $9.99 a month for unlimited downloads.

Subject
Technology
Skill
Trace and write Python code that uses lists and dictionaries
Time
About 45 minutes
Includes
12 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.