Skip to content
Minute Campus.

Python in one minuteLesson 011 min

What is a variable in Python, really?

A variable in Python is a name that points to a value. The equals sign is an instruction, not a claim: make this name point to that value. With age set to twenty and older set to age, both names point to twenty. Setting age to twenty-one moves only age, so older still shows twenty. One value can have many names, but each name points to one value.

Remember

Assigning to a name moves that name, not the value it pointed to.

Sources

Checked at the source.

Every claim in the lesson was checked against these before it was recorded.

  1. 1Assignment statements, Python Language ReferencePython documentation · read 14 Nov 2026Assignment statements (re)bind names to values and modify attributes or items of mutable objects.
  2. 2An Informal Introduction to Python: Using Python as a CalculatorPython tutorial · read 14 Nov 2026The equal sign is used to assign a value to a variable.

Transcript

The lesson, word for word.

Read it at your own pace, or search the page for a term.

What is a variable in Python, really? It is a name that points to a value. In maths, the equals sign makes a claim. In Python, it is an instruction: make this name point to that value. Watch two names. Read the code from top to bottom, one line at a time. First, age equals twenty, so the name age points to the number twenty. Next, older equals age, so older points to that same twenty. Then age equals twenty-one. Python moves the name age to a new value. It does not change the number twenty, and older still points to it. So the first print shows twenty-one, and the second shows twenty. One value can have many names, but each name points to only one value. The rule: assigning to a name moves that name. It does not change the value the name used to point to.

Questions? Comment on the lesson on YouTube

New lessons every day.

Follow Minute Campus where you already scroll.