Please enable JavaScript to use CodeHS

Oklahoma Advanced Programming

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

5.1 Tuples

  • Tuples
  • Tuples
  • Unit Tests
  • A Tuple Is a Sequence
  • A Tuple is Heterogeneous
  • +6 more

5.2 Lists

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

5.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

5.4 List Methods

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

5.5 Simulation

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

5.6 Dictionaries

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

5.7 Basic Data Structures Quiz

  • Basic Data Structures Quiz

Courses that include this module