Please enable JavaScript to use CodeHS

AP Computer Science Principles in Python (2025)

Basic Data Structures

Students will learn the basics of lists in Python while exploring tuples and lists. Students will explore how to create each of these and the various methods to access or alter them.

Lessons

7.1 Tuples

  • Tuples
  • Tuples
  • A Tuple Is a Sequence
  • A Tuple is Heterogeneous
  • Tuples With a Single Element
  • +5 more

7.2 Lists

  • Lists
  • Lists
  • A List Is Like a Mutable Tuple
  • List of Tuples, Tuples of Lists
  • String <--> List
  • +5 more

7.3 For Loops and Lists

  • For Loops and Lists
  • For Loops and Lists
  • Sum List
  • For Loops and Lists
  • For Loops and Lists, Part 2
  • +5 more

7.4 List Methods

  • List Methods
  • List Methods
  • Append and Extend
  • How Many Names?
  • Five Numbers
  • +12 more

7.5 Simulation

  • Simulation
  • Gravity Simulation
  • Conway's Game of Life
  • Simulating a Coin Flip
  • Wolf Sheep Predation Simulation
  • +1 more

7.6 Basic Data Structures Quiz

  • Basic Data Structures Quiz