Making a variable
A block button that creates a named box to store a value, like a score. You choose a clear name, and a tick box shows or hides the variable on the stage.
Understanding Making a variable in Years 5–6 Creating Digital Solutions
What it does: The name lives left says exactly what the box holds, so anyone reading the script understands it. An empty tick box means the variable still exists and works, but it is not shown on the stage. A clear name like score tells everyone what the variable stores. Names like x1 do not explain anything. Make a Variable creates a named storage place. Motion blocks are the ones that move sprites. Hiding a variable only removes the display. The variable still stores its value and can be used in scripts. Describing names such as high score make it easy for you and others to understand your program.
Common mistakes: The variable was made with the name score, but this line uses scor. A variable name must match exactly. It should be: set score to 0. The goal is to show the score on the stage, but this block hides it. It should be: show variable score.
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 41–50) and word search (Modules 41–74).
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
Make a VariableFill in the Blanks
Spot the Error
Student with a class code? Join your class →