A great wizard has thousands of potions. ๐งช If he puts them all on the floor, he will lose them!
In Python, we use Variables to organize things. Think of a variable as a Magic Box with a label on it. You can put something inside, and find it later just by reading the label.
To create a box, you give it a name, use the = sign, and then put something in it.
Now, whenever you type hero_name, the computer sees "Cody"!
๐ Notice: We don't use quotes when printing the box name. If you use quotes print("hero_name"), it will print the word "hero_name", not "Cody"!
Create a variable called my_name and put your name in it. Then print it.
my_name = "Wizard Alex" print(my_name)
Now change what is inside the box! Change my_name to "Super Coder" and print it again.
my_name = "Super Coder" print(my_name)
1. If score = 100, what is inside the box named "score"?
2. How do you save "Cat" into a box named 'pet'?