Please enable JavaScript to use CodeHS

AP Computer Science Principles in Python (2025)

Extending Data Structures

Students learn to build more complex programs that make use of grids and dictionaries.

Lessons

22.1 2d Lists

  • 2d Lists
  • 2d Lists
  • A List of Lists
  • Grid
  • 2d Lists and Slices
  • +4 more

22.2 List Comprehensions

  • List Comprehensions
  • List Comprehensions
  • List of Consecutive Numbers
  • List of Squares
  • Divisible by 3
  • +5 more

22.3 Packing and Unpacking

  • Packing and Unpacking
  • Packing and Unpacking
  • Packing
  • Unpacking
  • Unpacking Parameters
  • +5 more

22.4 Dictionaries

  • Dictionaries
  • Dictionaries
  • Keys and Values
  • The in Keyword
  • Phone Book
  • +1 more

22.5 Equivalence vs. Identity

  • Equivalence vs. Identity
  • Equivalence vs. Identity
  • Equivalence vs. Identity - Mutables
  • Equivalence vs. Identity - Immutables
  • Identity and Parameters
  • +2 more

22.6 Extending Data Structures Quiz

  • Extending Data Structures Quiz
  • Data Structures Badge

Courses that include this module