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
- Start with
import pip. - Store
pip.ask("Hello!")in a variable calledreply. - Print
reply.
💡 Hint
import pip, then reply = pip.ask("Hello!"), then print(reply).
bot.py
Terminal