Naming Your Variables
Give variables clear, helpful names.
Naming Your Variables is a free Coding for Kids lesson on CoddyKit — lesson 2 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.
Name Your Box! 🏷️
Every memory box needs a name, like a label!
A good name tells you what is inside. Let us learn naming! 😊
name = "Leo"
print(name)Pick a Clear Name 🎯
Good names are clear! If a box holds your age, call it age.
If it holds a color, call it color. Easy to remember! 🌈
age = 9
print(age)A Name for a Pet 🐶
Let us make a box called pet to hold your pet name!
Clear names make code easy to read. 📖
pet = "Buddy"
print(pet)No Spaces in Names 🚫
Box names cannot have spaces! Use my_dog, not my dog.
The little line _ is called underscore. It joins words! 🔗
my_dog = "Spot"
print(my_dog)Names Start With Letters 🔤
Box names should start with a letter, not a number.
Use cat1, not 1cat. Letters lead the way! 🎀
cat1 = "Mittens"
print(cat1)Little Letters Are Common 🔡
Most coders use little (lowercase) letters for box names.
Like star or game. Keep it simple! ✨
game = "tag"
print(game)Names Help You Remember 🧠
Good names help YOU remember what is inside!
A box called favorite_color is much clearer than x. 🎨
favorite_color = "green"
print(favorite_color)Be Descriptive 📝
The more your name describes the value, the better!
Like best_friend tells you exactly what is inside. 👫
best_friend = "Mia"
print(best_friend)Try a Few Names 🎲
You can make many boxes with different names!
Each one holds its own thing. So organized! 📚
hero = "Spider"
place = "city"
print(hero)
print(place)Name a Box for You 🙋
Make a box called name and put YOUR name inside!
Then print it to say hello. 👋
name = "Leo"
print(name)Naming Champion! 🏆
You learned to name your boxes nicely and clearly!
Great naming makes great coders. 🌟
champion = "You!"
print(champion)Quick Check ✅
Naming question! 🏷️
Name Pro! 👑
You learned how to give your variables clear, good names!
Next, you will learn how to change what is inside a box. 🔄
Frequently asked questions
Is the “Naming Your Variables” lesson free?
Yes — the full text of “Naming Your Variables” 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 “Naming Your Variables”?
Give variables clear, helpful names. 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 2 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Naming Your Variables” 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
- What Is a Variable?
- Naming Your Variables
- Changing a Value
- Using Variables Together