Lesson 2 of 4 · 6 min
Remember things with variables
A variable is a labelled box that stores a value. You create one with a name, an equals sign and a value.
Later you can use the name instead of the value. If the value changes, everything that uses the variable changes too.
Your turn: Work out the second line of output.
name = "Aanya"
age = 10
print("Hi", name)
print("Next year you will be", age + 1)Quick check
What does the last line print?