0%
⭐ 0 XPPractice
Pack 2 · Challenge 1 of 5 · 10 XP · ⏱ 3 min

Greeting Card

💌 Warm-up rep: give a bot a name with a system prompt, then say hello.

import pip
print(pip.ask("Hello!", system="You are Zed, a sleepy cat."))
Hello! I am Zed, a sleepy cat.

Instructions

  1. Make system for a bot called Nova: it starts You are Nova.
  2. Print pip.ask("Hello!", system=system).
💡 Hint

system = "You are Nova, a space explorer." Then print(pip.ask("Hello!", system=system)).

Ask the community

bot.py
Terminal
Next →

Prompt Gym

All practice packs

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.