Build Your First AI Agent / Chapter 1: Hello, Bot
Feedback
Quest

02. 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.

Solution
bot_name = "Bolt"
level = 1
print(bot_name)
Still stuck?

Press "Talk it out" at the top. Our Discord opens soon; until then email us and paste your code.

Chapter quests
  1. Chapter 1: Hello, Bot
    1. Wake Up 10 XP
    2. Name Tag 10 XP
    3. Mood Ring 10 XP
    4. Echo Echo 10 XP
    5. Snack Counter 15 XP
  2. Chapter 2: Talk to the Model
  3. Chapter 3: Tools CLUB
  4. Chapter 4: Memory CLUB
  5. Chapter 5: Loops and Plans CLUB
  6. Chapter 6: Party of Agents CLUB
bot.py
Terminal
Chapter 1: Hello, BotQuest 2 / 510 XPBackNext

Talk it out

  1. What did you expect your bot to do?
  2. What did it actually print? Read the terminal, line by line.
  3. What's different? Spelling, capitals, spaces and full stops all count.
  4. Is there an error? It tells you the line number. Look there first.
  5. Read the instructions again, one at a time. Each one is checked on its own.

Badge unlocked:

Your bot got a new part. Chapter complete!

Make your bot

Pick a name and a colour. You can change them later.