Chapter 1 · Quest 2 of 5 · 10 XP
Name Tag
🏷️ A variable is a labelled box that holds a value. You make one with a name, an equals sign and the value.
snack = "popcorn" lives = 3 print(snack)
popcorn
Text needs quotes. Numbers don't. Variable names use lowercase and underscores, like top_score.
Instructions
- Make a variable called
bot_nameand give it a name in quotes. - Make a variable called
levelset to the number1(no quotes). - Print
bot_name.
💡 Hint
Text gets quotes: bot_name = "Bolt". Numbers do not: level = 1. Then print(bot_name), with no quotes around bot_name.
bot.py
Terminal