L1/10

Storing a Value in a Variable

A variable gives a value a name.

python
pet_name = "Milo"
print(pet_name)

Here is what the example does:

  • pet_name stores the text "Milo".
  • print(pet_name) displays the value stored in pet_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_name to 'Ayla'.
  • Print hero_name.

Your finished program should print exactly this output:

text
Ayla

Be very careful with capitalization, spaces, and line breaks. The output must match exactly.