Storing a Value in a Variable
A variable gives a value a name.
pet_name = "Milo"
print(pet_name)Here is what the example does:
pet_namestores the text "Milo".print(pet_name)displays the value stored inpet_name.
The assignment changes the specific values, but the basic pattern is the same.
Assignment
Complete the starter code so the program does the following:
- Set
hero_nameto'Ayla'. - Print
hero_name.
Your finished program should print exactly this output:
AylaBe very careful with capitalization, spaces, and line breaks. The output must match exactly.