Variables: Boxes for Data ๐ฆ
A variable is like a labeled box where you store something to use later.
You create one with =:
pet = "hamster"
age = 3
print(pet) # โ hamster
print(age) # โ 3
The name goes on the left, the value goes on the right. Once it's stored, you can use the name anywhere!
Your mission
- Make a variable called
heroand store your favorite character's name in it - Make a variable called
powerand store a number in it (their power level!) - Print them both
Your code
Press โถ Run to see what your code does!