Concept
Looping over a dict gives its keys; items() gives key and value pairs together, and values() just the values. Dicts keep insertion order.
The tutor works through these with you, in conversation and code. A session ends when you have shown them, not when a video does.
A few lines that show Iterating over dictionaries doing its job.
stock = {"apple": 12, "pear": 0, "plum": 4}
for fruit, count in stock.items():
if count == 0:
print(fruit, "is sold out")
in_stock = {f: c for f, c in stock.items() if c > 0}
print(in_stock)Adding or deleting keys while looping over the same dict, which raises RuntimeError. Loop over list(stock) or build a new dict instead.
Your roadmap puts these before Iterating over dictionaries, unless you already know them.
Once a session shows you understand Iterating over dictionaries, it comes back for review. Each review takes a minute and tells the memory model how well you still know it.
Topics that build on Iterating over dictionaries.