Labelled boxes that change
Today I can explain what a variable is and how its value can change.
A Look back4 min
- 1.
The robot starts at the top left. The star is at the right, one row down. Circle the arrows that take the robot to the star.
→ → ↓↓ ↓ →← → ↓ - 2.
A loop repeats 3 times. Each time, the robot moves forward 2 steps. How many steps in total?
- 3.
Put these steps in order. Write 1 to 4 in each box.
- Brush for two minutes
- Rinse your mouth
- Take the brush from the cup
- Put toothpaste on the brush
B Watch me, then you4 min
Mia's game has a variable called lives. It starts at 3. Each hit takes away 1 life.

The name of the variable is lives. Its value starts at 3.
Hit 1: change lives by −1. So 3 − 1 = 2.
Hit 2: 2 − 1 = 1. The value of lives is now 1.
- 1.
Mia's program has the block: set team to Red. Which word is the name of the variable? Circle it.
teamRedMia
C Your turn7 min
Each row is about one variable. Decide which part is the name and work out the value it holds.
- 1.
Sort these cards. Write each card in the right column: name or value.
lives3playerNamePriyaName Value - 2.
A variable called team holds 'Red'. The program then sets team to 'Blue'. What does team hold now?
BlueRedBlue Red - 3.
score starts at 0. Each coin adds 1. After 3 coins, what is score?
- 4.
A variable called playerName holds 'Priya'. The program sets it to 'Sam'. Which part stayed the same, and which part changed?
Say it out loud: What stayed the same in each row, and what changed? Which part is the name?
D Spot the mistake3 min
- 1.
Write one sentence to tell Kit what is wrong.
E Think deeper4 min
- 1.
Ali's game has a variable called score. It starts at 0. Ali wins 10 points and says the name has changed to 10. Explain what is really changing, and what stays the same.