Level 1
0 / 100 XP

What is a variable?

A variable is a name for a value. You assign with = and reuse the name.

Python
name = "Joe" age = 25 print(f"{name} is {age} years old. {age} years old is such a fun age! Right, {name}?")

Note: You can click Edit to modify Python scripts or Run to execute them directly on the page. Try it out with the code block above!

Variables make code readable and let you change a value in one place.