Codzy

Variables

A variable is a named box in which you store a value. You create it with the = sign: age = 20.

Then you use the variable's name to get its value back. A variable name can't start with a digit and can't contain spaces or hyphens: use an underscore, as in my_age.

name = "Sara"
age = 20
print(name)
print(age)

Start the lesson