Data Iteration · Part 3
for over dicts; keys/values/items; sum, argmax, reverse mapping, filter by value.
Lesson 15 · Data Iteration · Part 3 — Level I · Guide
September 3, 2026 · Bridge Academy Python Program
Learning goals
- Iterate keys by default with
for key in d:. - Use
.keys(),.values(), and.items()for explicit iteration. - Sum, filter, and transform dictionary data with a loop.
- Build a new dict (e.g. doubled values, reversed mapping) with an explicit loop.
- Find the key with the max value and count entries above a threshold.
This lesson covers PCEP-30-02 objective 2.2.
Preview truncated — download the notebook to see the full lesson.