Dictionaries – Methods (keys, values, items, get)
Dictionary methods return views or values: .keys(), .values(), .items(), and .get()
What it does: .get(key, default) is safe — returns the default instead of raising a KeyError. .items() returns (key, value) tuples — great for iterating with unpacking. .keys() gives the left side of each pair — the lookup labels. The second argument to .get() is the fallback when the key is missing. pop() both removes the key and gives you its value in one step. update() merges another dict in — new keys are added, existing ones overwritten. len() counts the number of key-value pairs, not the total characters. in checks keys by default — use 'name' in d.values() to check values.
Common mistakes: It's keys() with an 's': not key(). It's values() with an 's': not value().
Free printable worksheet with full answer key — or add this module to a journey and assign it to your class.
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
.keys()Fill in the Blanks
Spot the Error
Create a free class, add this module to a journey, and track who's stuck.
Create a free teacher account →No credit card. No setup fee. Make a class and invite students in under three minutes.
Practice this topic interactively, track progress, and unlock badges.
Start Learning Free →