Jupyter Notebook Lab — Module 02#

Containers: Lists, Dictionaries, Tuples & Sets

Practice creating and working with all four Python container types using realistic customer and product data scenarios.


Download#

📓 Student Notebook coming soon 🔑 Answer Key coming soon

What You’ll Practice#

  1. Creating and modifying lists — append, remove, index, and slice
  2. Building dictionaries — named-field records and key access
  3. Using tuples — fixed reference data and tuple unpacking
  4. Applying sets — finding unique values and set operations
  5. Combining containers — list of dictionaries for multi-customer datasets

Learning Objectives#

By completing this notebook you will be able to:

  • Choose the right container type for a given business data scenario
  • Access, add, and modify data within each container type
  • Use built-in functions (len(), sum(), sorted(), set()) with containers
  • Build a structured dataset using nested containers (list of dictionaries)
  • Perform set operations to answer analytical questions about overlapping segments

Next Module: Module 03 — Branching & Control Flow →