0Pricing
Coding for Kids · Lesson

What Is a Variable?

A variable remembers a value for you.

What Is a Variable? is a free Coding for Kids lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Coding for Kids learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Magic Memory Box! 📦

A variable is like a magic memory box! 📦

You put something inside it, and the computer remembers it for you. So helpful! 🧠

Putting Something Inside 🎁

To fill a box, we give it a name and put a value inside using =.

Like: age = 8. Now the box named age holds 8! 🎈

age = 8
print(age)

The Equals Sign = ✏️

The = means "put this inside the box".

It is NOT a math equals. It means "store this here!" 📥

lucky = 7
print(lucky)

Boxes Hold Numbers 🔢

A box can hold a number, like how many candies you have!

Then you can print the box to see what is inside. 🍬

candies = 10
print(candies)

Boxes Hold Words 💬

A box can also hold words! Just remember words need quotes.

Like a box holding your pet name. 🐶

pet = "Rex"
print(pet)

Why Boxes Are Handy 🤔

Boxes save us time! Put something in once, use it again and again.

No need to type it over and over. Smart! ✨

score = 100
print(score)
print(score)

Peeking Inside 👀

To see what is in a box, we print the box name!

The computer opens the box and shows you. Peek-a-boo! 🙈

color = "blue"
print(color)

One Box, One Thing 🎯

Each box holds one thing at a time.

Like one toy per box. Neat and organized! 🧸

toy = "robot"
print(toy)

Boxes Remember For You 🧠

Once you fill a box, the computer remembers it until you change it!

It is like the computer has a great memory. 💭

name = "Sam"
print(name)
print(name)

Make Your Own Box 🛠️

Let us make a box for your favorite food!

Pick a name, put your food inside, then print it. Yummy! 🍕

food = "pizza"
print(food)

You Made a Box! 🎉

You created your very first variable, a magic memory box!

Way to go, super coder! 🌟

win = "I did it!"
print(win)

Quick Check ✅

Box question time! 📦

Box Master! 👑

You learned that a variable is a memory box that remembers a value!

Next, you will learn how to give your boxes good names. 🏷️

Frequently asked questions

Is the “What Is a Variable?” lesson free?

Yes — the full text of “What Is a Variable?” is free to read here on the web, and the Coding for Kids course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Coding for Kids course, upgrade to CoddyKit PRO.

What will I learn in “What Is a Variable?”?

A variable remembers a value for you. You practise Coding for Kids with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Coding for Kids?

No prior experience is required. Coding for Kids on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “What Is a Variable?” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Coding for Kids lesson?

Yes. Every Coding for Kids lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. What Is a Variable?
  2. Naming Your Variables
  3. Changing a Value
  4. Using Variables Together
← Back to Coding for Kids