variable

A name that refers to a value, created by assignment, such as width = 10.

In more detail

In Python a variable is a label attached to an object, not a box containing it, so two names can refer to the same object. A variable has no fixed type; assigning a new value simply moves the label. Using a name before assigning it raises NameError.

Related terms

Taught in

References

Certification courses