Variables: What Can Change?
A 30-minute lesson plan to teach kids that a variable is a name for something that can change. Read-aloud, teacher demo, hands-on table work, videos, and a partner-robot dance!
Lesson Schedule (30 minutes)
| Time | Activity |
|---|---|
| 3:00-3:05 | Welcome, expectations, quick "robots" warm-up |
| 3:05-3:18 | Read-aloud: What's a Variable? |
| 3:18-3:30 | Demo: "Program the Teacher Robot" (variables: HAT, FACE, BUMP_SOUND) |
| 3:30-3:35 | Callback to last week: move Teacher Robot (now w/ BUMP_SOUND) |
| 3:35-3:40 | Explain table activities + model "variable = named box" |
| 3:40-4:05 | Table work: Robot Faces + Mad-Lib Variables |
| 4:05-4:12 | Share-out & recap ("name stays, value changes") |
| 4:12-4:17 | Video: Variables song (Scratch Garden) |
| 4:17-4:20 | Video: Robot dance clip (clap/shrug/nod) |
| 4:20-4:28 | Whole-class: "Program your partner robot" dance |
| 4:28-4:30 | Pack-up buffer |
1 Welcome & Warm-Up (5 min)
- "Hi programmers! Today we're controlling robots again."
- "Last week we programmed where the robot goes. Today we program what the robot is like."
- "A variable is a name for something that can change."
2 Read-Aloud (13 min)
Book
"What's a Variable? A Story Time Adventure"
By Kaitlyn Siu and Marcelo Badari | First Steps in Coding Series
- "Listen for things that can change."
- "If the robot changes its face... is the robot still the robot? Yep. The name stays, the value changes."
3 Demo: Program the Teacher Robot (12 min)
- Robot voice: "Beep boop. I am Teacher Robot. I only run programs."
- "Programmers: tell me what to set my variables to."
- - "Set HAT to ____." (put on hat or pretend)
- - "Set FACE to ____." (do the face)
- - "Set BUMP_SOUND to ____." (practice it once)
4 Callback: Move the Robot (5 min)
- "Now use last week's commands to move me. When I bump something... I must play my BUMP_SOUND."
- After 1 bump: "Did the walking change my BUMP_SOUND?" (No.)
- "That's a variable - same name, same value until we change it."
5 Explain Table Activities (5 min)
"At your tables you'll do two programmer jobs:"
- "Build a robot and change its FACE."
- "Make a silly story where a blank has a variable name, and you choose the value."
Robot Faces Interactive Activity
Use this digital activity to demonstrate how the FACE variable works before table time!
6 Table Work (25 min) Main Activity
A) Robot Faces Activity
Materials:
- Robot body page
- Face options page
- Crayons
- Glue stick (or tape)
Steps:
- Color robot + faces
- Attach a face to the robot
- Extra (fast finishers): "Change FACE" by swapping to a different face
- "What's your variable name?" -> "FACE."
- "What's your FACE value right now?" -> "Silly!"
B) Mad-Lib Variables
Kids complete simple picture phrases with a blank labeled as a variable name
(ex: PET, HAT, MOOD, SOUND).
They choose an option or draw their own value, then read the sentence out loud.
Example sentences:
- "My robot's
HATis ____." - "When my robot bumps,
BUMP_SOUND= ____." - Older kids:"If
MOOD= happy, the robot will ____."
7 Share-Out & Recap (7 min)
- "Show me your robot. What is FACE set to?"
- Pick 2 kids to read a mad-lib line.
- "Say it with me: Variable = a name. Value = what it is right now."
- "Can variables change?" (Yes.) "Does the name change?" (No.)
8 Videos (8 min)
9 Program Your Partner Robot (8 min)
Printable Worksheet
Kids circle choices (clap/shrug/nod) for 10 steps, then their partner acts it out!
- "You're in pairs. One is the Programmer, one is the Robot."
- "Programmers: set your robot's variables:"
- MOVE1 = clap MOVE2 = shrug MOVE3 = nod
- "Run your program: 1, 2, 3!"
- Swap roles.
Pack-up Buffer (2 min)
- Finish coloring / one last FACE swap
- Closing line:"Ask your grown-up what variables they use every day - like volume, temperature, or points in a game."
Quick Prep Checklist
- Print robot bodies + face pages (pre-cut faces if you want zero-scissor mode)
- Print mad-lib variable sheets (picture-only + word version)
- Bring: crayons, glue/tape, 2-3 hats/props for your demo