Everything you need before the bell rings
Learning Objectives
Students will be able to…
- ✓Explain a key-value pair.
- ✓Look up a value by its key.
- ✓Add and update entries.
- ✓Build a dictionary.
How do you store and look up data by a meaningful key?
Match Each Key to Its Value
Project this and match each key (country) to its value (capital) — tap the key, then tap the value.
55 minutes, five moves
Tap any phase to open the teacher moves and student actions.
Hook — Look It Up by Name
How would you store each country’s capital for instant lookup?
👩🏫 Teacher Moves
- Show a lookup by name.
- Ask how to store it.
- Set the goal.
🎒 Student Actions
- Look.
- Guess.
- Get ready.
Use — Dictionaries
Students use the idea.
👩🏫 Teacher Moves
- Send students to Match Key to Value.
- Match each one.
- Note key → value lookup.
🎒 Student Actions
- Match.
- Say.
- Note it.
Modify — Change Entries
Students modify.
👩🏫 Teacher Moves
- Look up a value by its key.
- Add a new key-value pair.
- Update an existing value.
🎒 Student Actions
- Look up.
- Add.
- Update.
Create — Build a Dictionary
Students create.
👩🏫 Teacher Moves
- Make a dictionary (name → score).
- Add 4 entries.
- Look up and print one.
🎒 Student Actions
- Make.
- Add.
- Look up.
Reflect — Reflect
Students close.
👩🏫 Teacher Moves
- Say what a key is.
- Say how you look up a value.
- Complete the exit ticket.
🎒 Student Actions
- Say it.
- Say.
- Complete the exit ticket.
Built to the standards you report on
Aligned to the CSTA K-12 Computer Science Standards and the ISTE Standards for Students.
Create prototypes that use data to solve problems.
Use data structures to reduce complexity.
Combine control structures with data.
Organize data to build solutions.
One lesson, every learner
Multilingual Learners
- Use a phonebook analogy.
- Frame: “key unlocks a value.”
- Point key to value.
Support & Access
- Use 3 pairs.
- Look up one value.
- One key at a time.
Stretch & Extend
- Loop over all keys.
- Use a value that is a list.
- Count items with a dictionary.
What to gather
- 📽️Screen / board
- 🗝️Key/value cards
- 💻Match Key to Value
- 🐍Python / editor
- 📓Notebooks
- 🎫Exit-ticket slips
Key terms — hover for a quick definition
Exit Ticket
Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students.
Reflect: dictionaries.
Have students build a 4-entry dictionary and look up one value. A printable dictionaries worksheet is in the Computer Science library.
Study the key terms
Tap a card to flip it, then rate whether you knew it. Built from this lesson’s vocabulary.
Nice work!
Check your understanding
A quick self-check with instant feedback, drawn from this lesson’s key terms.
Nice work!
Printable worksheet
A print-and-go review sheet with a built-in answer key. Tap “Show answer key” to reveal answers, or print the clean version for students.
Part A · Write the word that matches each meaning
- each key appears once
- data stored as key-value pairs
- a key and its value together
- change the value for a key
- getting a value from its key
- one key-value pair
- the label you look up by
- the data stored for a key
Part B · Show what you learned
- What is a key?
- How do you get a value from a dictionary?
- How is a dictionary different from a list?
Part B: 1) The label you use to look up a value. 2) By its key, e.g. capitals[‘France’]. 3) A list uses number positions; a dictionary uses meaningful keys.