Everything you need before the bell rings
Learning Objectives
Students will be able to…
- ✓Explain what a variable is.
- ✓Store a value and change it.
- ✓Tell numbers, text & true/false apart.
- ✓Use a variable in a program.
What is a variable, and why do programs use them?
The Variable Explorer
Project this and tap each. Have students explore what different variables store.
45 minutes, five moves
Tap any phase to open the teacher moves and student actions.
Hook — A Box That Remembers
What could a program need to remember while it runs?
👩🏫 Teacher Moves
- Show a game score going up.
- Ask “how does it remember the number?”
- Set the goal.
🎒 Student Actions
- Watch.
- Guess.
- Get ready.
Use — Variables
Students use variables.
👩🏫 Teacher Moves
- Send students to the Variable Explorer.
- Tap each variable.
- Note number, text & true/false.
🎒 Student Actions
- Tap each.
- Say.
- Note it.
Modify — Change the Value
Students modify.
👩🏫 Teacher Moves
- Set score = 0, then score = score + 1.
- Change lives from 3 to 2.
- Spot what changed.
🎒 Student Actions
- Set.
- Change.
- Spot.
Create — Make Your Own
Students create.
👩🏫 Teacher Moves
- Name a new variable (e.g. coins).
- Give it a starting value.
- Change it in a step.
🎒 Student Actions
- Name.
- Set.
- Change.
Reflect — Reflect
Students close.
👩🏫 Teacher Moves
- Say what a variable is.
- Name a value it could hold.
- Complete the exit ticket.
🎒 Student Actions
- Say it.
- Name one.
- Complete the exit ticket.
Built to the standards you report on
Aligned to the CSTA K-12 Computer Science Standards and the ISTE Standards for Students.
Programs that use variables to store and modify data.
Create programs with sequences, events, loops & conditionals.
Decompose a problem into smaller named parts.
Represent data to solve problems.
One lesson, every learner
Multilingual Learners
- Label real boxes as variables.
- Sentence frame: “___ holds ___.”
- Pair talk before writing.
Support & Access
- Start with score only.
- Use a physical counter.
- One change at a time.
Stretch & Extend
- Add two variables that interact (score & lives).
- Use a variable in a sentence of code.
- Explain number vs text.
What to gather
- 📽️Screen / board
- 📦Labeled boxes
- 💻The Variable Explorer
- 🎮Scratch or paper code
- 📓Notebooks
- 🎫Exit-ticket slips
Key terms — hover for a quick definition
Exit Ticket
Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students.
Reflect: variables.
Have students name one variable a favorite game might use and what it stores. A printable variables worksheet is in the Computer Science library.
Study the key terms
Tap a card to flip it, then rate whether you knew it. Built from this lesson’s vocabulary.
Nice work!
Check your understanding
A quick self-check with instant feedback, drawn from this lesson’s key terms.
Nice work!
Printable worksheet
A print-and-go review sheet with a built-in answer key. Tap “Show answer key” to reveal answers, or print the clean version for students.
Part A · Write the word that matches each meaning
- to put a value into a variable (=)
- what is stored inside a variable
- a numeric value like 0 or 3
- a true/false value
- a common number variable in games
- a named box that stores a value
- a text value, written in quotes
- to change a variable’s value
Part B · Show what you learned
- What is a variable?
- What kind of value is “Maya”?
- If lives = 3 and you lose one, what is lives now?
Part B: 1) A named box that stores a value you can use and change. 2) Text (a string). 3) 2 (lives = lives − 1).