Skip to content

Variables

Python · Free lesson · No account needed

Step 1 of 9 · Start here

Variables

Start here

A variable is a name for a value, so your program can remember it and use it later.

score = 10
print(score)

The = doesn't mean "equals" here. It means store: put the value on the right under the name on the left. Then wherever you write score, Python uses 10.

You’re trying a free lesson. Your progress saves on this device. Create a free account to keep it everywhere and ask the AI tutor.