Concept
A dictionary maps keys to values and finds a key in constant time, however many it holds. It is the right structure whenever you look things up by name or id.
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 Dictionary lookups doing its job.
stock = {"apple": 12, "pear": 0}
print(stock["apple"]) # 12
print(stock.get("plum")) # None, no error
print(stock.get("plum", 0)) # 0
stock["plum"] = 4
print("pear" in stock) # TrueReading a key that may be missing with square brackets. stock["plum"] raises KeyError. Use get() with a default, or check with in first.
Your roadmap puts these before Dictionary lookups, unless you already know them.
Once a session shows you understand Dictionary lookups, 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 Dictionary lookups.