Learn1 of 3
What Is a Variable?
A variable is like a labeled box that stores information. You create one with the = sign: name = 'Alex' (stores the text Alex), age = 9 (stores the number 9), favorite_color = 'blue'. The word on the left is the label, and the value on the right is what goes inside the box. You can use the variable later: print(name) shows Alex.