Nested Lists
A nested list is a list that contains other lists as its elements
What it does: Sets automatically remove duplicate values — each item appears only once. Use set() for an empty set. .add() inserts one element. {} creates an empty dict, not a set — you must use set(). Sets have no guaranteed order, so s[0] doesn't work — use in to check membership. .append() is for lists; sets use .add() to insert a single item. Sets don't support index-based pop — use .remove() or .discard() by value. in checks membership — 3 is in the set so it returns True. len() counts the number of unique items in the set.
Common mistakes: {} creates an empty dict, not a set. Use set() for an empty set. Sets use .add(), not .append() (that's for lists).
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
SetFill 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 →