Please enable JavaScript to use CodeHS

Texas Computer Science I in Python

Creating and Altering Data Structures

Students learn how tuples and lists are formed and the various methods that can alter them.

Lessons

10.1 Tuples

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

10.2 Lists

  • Lists
  • Lists
  • A List Is Like a Mutable Tuple
  • String <--> List
  • Spell It Out
  • +3 more

10.3 For Loops and Lists

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

10.4 List Methods

  • List Methods
  • List Methods
  • append and extend
  • How Many Names?
  • Five Numbers
  • +8 more

10.5 More List Methods

  • insert
  • sorted
  • index
  • Removing Elements: remove, del, pop, clear
  • List Methods Practice
  • +5 more

10.6 2d Lists

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

10.7 List Comprehensions

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

10.8 Packing and Unpacking

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

10.9 Dictionaries

  • Dictionaries
  • Dictionaries
  • Keys and Values
  • Removing Keys and Values
  • Update the Menu
  • +4 more

10.10 Creating and Altering Data Structures Quiz

  • Creating and Altering Data Structures Quiz

Courses that include this module