Understand the idea
A variable holds a value that can change. Each new calculation uses the current value.
WORKED EXAMPLE
Set score = 2. Add 3, then double, then subtract 1: 2 → 5 → 10 → 9.
Watch it step by step
Step 1 of 4Set
score = 2.
Choose Play to advance steps automatically.
Read or choose any step
- Set
score = 2.
- Add
score = score + 3, so score is 5.
- Double
score = score × 2, so score is 10.
- Subtract
score = score - 1, so score is 9.
TRY BEFORE CHECKING
Exercises with feedback
MAKE SOMETHING YOU CAN EXPLAIN
Your practical challenge
Make a variable trace table for the example. Change the starting value and repeat.
These ticks are your self-review. They do not automatically assess project quality. Ask an adult or partner to review what you can show.
Use the skill in a new situation
Reverse two instructions and compare outcomes.