Python Data Structures

Learning Goals

  • Demonstrate Sequence types (list, tuple, range)
  • Review the different uses for each Sequence type
  • Demonstrate standard methods for accessing, updating and deleting values in Lists
  • Review Tuples
  • Review Ranges
  • Demonstrate Mapping types with Dictionaries
  • Demonstrate standard methods for accessing, updating and deleting values in Dictionaries
  • Demonstrate Set types with set and frozen set
  • Demonstrate for and while loops
  • Demonstrate list comprehensions
  • Stretch Goals
    • Demonstrate Generator expressions
    • Demonstrate how to create a switch using a Dictionary