0%
⭐ 0 XPMap
Chapter 2 · Quest 1 of 5 · 10 XP

First Words

🧠 An AI agent starts with a model: something you send words to and get words back from. Meet Pip, our tiny practice model. Pip runs right here in your browser and always gives the same answer to the same message, so your tests always work.

import pip
answer = pip.ask("Hey Pip!")
print(answer)
Hello! I am Pip, a tiny practice model. Ask me something.

pip.ask() takes your message (the prompt) and gives back Pip's reply as text. Real models work the same way. They're just bigger.

Instructions

  1. Start with import pip.
  2. Store pip.ask("Hello!") in a variable called reply.
  3. Print reply.
💡 Hint

import pip, then reply = pip.ask("Hello!"), then print(reply).

Ask the community

bot.py
Terminal
← BackNext →

Chapter 2: Talk to the Model

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.