Enumerations – Basics
An Enum class defines a fixed set of named constants that each have a name and a value
What it does: Tuples are ordered, immutable sequences defined with parentheses. Tuple unpacking assigns each value to a variable in order. Tuples are like lists but cannot be changed after creation. The comma makes it a tuple — (1,) is a tuple, (1) is just parentheses around 1. Immutable means once created, the items cannot be added, removed, or changed. Indexing a tuple returns the item at that position — t[0] is the first item, 1. Immutability signals intent — use a tuple when the data is fixed (coordinates, RGB values). len() counts the number of items — there are 3 items in this tuple.
Common mistakes: Tuples are immutable: can't change items. Create a new tuple instead. Tuples don't have append(): they're immutable.
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
TupleFill 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 →