Imagine a labeled box on a shelf - the label says score, but what's inside the box can change any time you want. In Python, writing score = 10 puts the number 10 inside the box labeled score. You can open the box again later, look at what's inside, or swap it for something new - the label never changes, only the contents do.
A variable is a name you give to a piece of data so your program can use it again later, the same way a person's name lets you refer to them instead of pointing every time. Once you create one, you can use its name anywhere in your code to get the value back, or replace it with something new.
variable_name = valueplayer_name = "Aanya"
lives = 3
print(player_name)
print(lives)Line 1 creates a variable called player_name and stores the text "Aanya" inside it. Line 2 creates a second variable, lives, storing the number 3. The print lines then look up whatever is currently stored under each name and show it - the name never changes, only what's stored under it can.
score = 10
trophy = score
score = 20
print(trophy)Line 2 copies the NUMBER 10 that score held at that moment into trophy - it does not link the two variables together. Changing score afterward (line 3) never affects trophy, so trophy still prints 10: each variable is its own independent box.
In the app this lesson continues with the animated explanation, spoken aloud, and then the practice: Change score to 10 instead of 0, then print it - same box, new contents. The editor runs your child’s real code and checks the result, with their coding buddy reacting to what they wrote.