Variables
A variable stores a value under a name using the = assignment operator
What it does: A variable stores a value under a name so it can be reused later, created with the assignment operator: name = 'Alice'. The name goes on the left, the value on the right. Once assigned, a variable can be read back or reassigned at any point, and Python figures out its type automatically from whatever's assigned to it.
Common mistakes: A single = assigns a value; a double == compares two values — mixing them up (age == 15 instead of age = 15) is one of the most common beginner errors. Variable names also can't start with a digit — 2score is invalid, score2 is fine.
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
x = 5 do?name = 'Alice', what is stored in name?= mean in Python?score = 100, what is stored in score?Match the Pairs
Key Term
name = 'Alice'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 →