Skip to content
PlayOwl

Coding · Grade 9

Collections and Structured Data

Using a school clubs fair, learners work with Python's four core collections: lists (slicing, comprehensions, enumerate), tuples (immutable records and unpacking), sets (uniqueness and set operations) and dictionaries (lookup, counting, grouping and nested data). They reason about mutability, aliasing and copies, and choose the right collection for each job.

  • 4 lessons
  • About 90 minutes
  • Check what you learned: 8 questions
  • Ways to answer: choose an answer, put code in order, trace code, match pairs, type a number and sort into groups
See plans Included with Family, Teacher and School plans. Open in PlayOwl

What learners will discover

  • Use lists with slicing, comprehensions, enumerate and common methods.
  • Use tuples for fixed records and sets for unique members and set operations.
  • Use dictionaries for lookup, counting and grouping, including nested structures.
  • Reason about mutability, aliasing and copies, and choose an appropriate collection for a task.

Lessons

  1. Lists in depth 6 steps3 practiceabout 22 min
  2. Tuples and sets 5 steps3 practiceabout 20 min
  3. Dictionaries and nested data 5 steps3 practiceabout 22 min
  4. Mutability, aliasing and choosing a collection 5 steps3 practiceabout 20 min
  5. Check what you learned 8 questions at the end

Keep exploring

More 9th grade coding

Guide for grown-ups