๐Ÿ PyQuest๐Ÿš€ First Steps ยท ๐Ÿ“ฆ Variables: Boxes for Data
โญ 0 XP๐Ÿ Python is waking upโ€ฆ

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

  1. Make a variable called hero and store your favorite character's name in it
  2. Make a variable called power and store a number in it (their power level!)
  3. Print them both

Your code

Press โ–ถ Run to see what your code does!