Variables
A variable stores a value under a name using the = assignment operator
Understanding Variables in Python
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 class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 1–10) and word search (Modules 1–20).
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
Student with a class code? Join your class →