Please enable JavaScript to use CodeHS

AP Computer Science Principles in Python

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 Introduction to Lists

  • Introduction to Lists
  • Introduction to Lists Quiz
  • Creating Your First List
  • A List of Your Favorites
  • Science Fair

7.2 List Indexing and Modification

  • Indexing Lists
  • Indexing Lists Quiz
  • Lunch Menu
  • Class Schedule
  • Modifying Lists
  • +4 more

7.3 AP List Operations

  • Growing and Shrinking Lists
  • List Operations Quiz
  • Append
  • Remove
  • Build a Shopping List
  • +4 more

7.4 For Loops and Lists

  • For Loops and Lists
  • Loop Variables and Accumulation
  • For Loops and Lists
  • Sum List
  • For Loops and Lists
  • +6 more

7.5 Simulation

  • Simulation
  • How Simulations Work
  • Gravity Simulation
  • Conway's Game of Life
  • Understanding Conway's Rules
  • +3 more

7.6 Data Abstraction, AP Practice, and Create PT Readiness

  • Why Lists Make Programs Better
  • Check for Understanding: Data Abstraction
  • Algorithm Efficiency
  • Check for Understanding: Algorithm Efficiency
  • Searching Algorithms
  • +2 more

7.7 Basic Data Structures Quiz

  • Basic Data Structures Quiz

Courses that include this module