Dictionaries – Methods (keys, values, items, get)
Dictionary methods return views or values: .keys(), .values(), .items(), and .get()
Understanding Dictionaries – Methods (keys, values, items, get) in Python
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 class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 31–40) and word search (Modules 21–40).
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
Student with a class code? Join your class →