Lesson 10 of 10

🔢 Variables

🎯 Grades 3–5 ⏱ ~25 minutes 💚 Intermediate

What You'll Learn

  • What a variable is — a named box that stores a value
  • How to set, change, and read a variable
  • How one variable can affect an entire program
Quick Check

1. What is a variable?

AA type of loop that repeats forever
BA named box that stores a value your program can use and change
CA block that draws a shape

2. score starts at 0. You do: score = score + 10, score = score + 10, score = score − 5. What is score now?

A20
B15
C5

3. Why are variables useful?

AThey make programs shorter by removing loops
BYou can change one value and it affects the whole program
CThey only work in Scratch, not in real programming
🎉

Course Complete!

You have mastered all 10 Block Coding lessons: algorithms, sequences, movement, drawing, loops, patterns, debugging, conditionals, and variables. These are the same ideas every professional programmer uses. You are ready for the next track!

Explore More Courses →