0%
⭐ 0 XPMap
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

  1. Make a variable called bot_name and give it a name in quotes.
  2. Make a variable called level set to the number 1 (no quotes).
  3. 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.

Ask the community

bot.py
Terminal
← BackNext →

Chapter 1: Hello, Bot

The full quest map

Talk it out

  1. Read the instruction with the ✗ out loud.
  2. Say what your code does, line by line, as if to a friend.
  3. Find the line where what it does and what you want split apart.
  4. Press Run and read the terminal. Is that what you expected?
  5. Still stuck? Press Ask Pip why, or peek at the solution.
  6. Or ask on the community help board: say which quest, and paste your code.
New badge!

Your bot just got a new part. See it on the quest map.

Name your bot

It levels up as you play, and gets a new part with every chapter.