Dictionaries · Part 2
keys, values, items, get with default, pop, update, for-loop preview.
Lesson 11 · Dictionaries · Part 2 — Level I · Guide
July 30, 2026 · Bridge Academy Python Program
Learning goals
- Get all keys with d.keys(), all values with d.values(), and all pairs with d.items(). - Read a value safely with d.get("key", default) when the key might be missing. - Remove and return a value with d.pop("key"). - Merge a second dictionary in with d.update({...}). - Preview iterating a dictionary with a simple for loop.
This lesson covers PCEP-30-02 objective 3.3.
Preview truncated — download the notebook to see the full lesson.