Python AI: Build a Smart Assistant
Python camp course
Python AI: Build a Smart Assistant
Campers write a real Python program that lives on their Mac, listens to typed commands, and answers out loud — one stage at a time, from a single hello to a personalized sidekick they demo to their parents on Friday.
What campers ship
A sidekick that talks back — not ten worksheets
Every stage adds one new skill to the same assistant.py file. By Friday campers have a program that greets them by name, tells jokes, remembers facts, and pulls live data off the internet — and the honest understanding of how every line works.
A talking assistant you can demo to your parents
Real Python: variables, loops, functions, lists, dictionaries, the internet
A program that runs on a real Mac with a real dev workflow (VS Code + uv)
Assistant moments
Each stage adds something campers can hear and use
Every stage produces a change campers can run and talk to. They type a command, the assistant answers out loud — the voice is the proof.
It talks back out loud
Stage 1 makes the Mac speak with one speak() helper. From then on every new skill prints AND says its answer in a real voice.
It keeps listening
A while-loop turns the assistant into a command shell. Type command after command and it keeps answering until you tell it to quit.
It tells jokes
A list of jokes plus random.choice means the assistant never tells the same one twice in a row. Campers will spam this command.
It remembers you and reaches the internet
A dictionary lets it remember facts you teach it, and requests pulls a fresh joke or fact straight off the live internet — then speaks it back to you.
Course path
Your assistant gets smarter stage by stage
Each stage names the one new Python idea behind it and the new thing the assistant can do.
Wake It Up
Make the Mac talk: a speak() helper says your first hello out loud.
Custom startup lineStage 2It Knows You
Ask the user’s name, store it in a variable, and greet them by name.
Remember a favoriteStage 3It Reacts
Use if / elif / else so the assistant replies differently to each command.
A mood replyStage 4It Keeps Listening
A while-loop command shell takes command after command until you quit.
A typed menuStage 5It Has Skills
Move each command into its own function so the assistant has a clean skill list.
A help commandStage 6It Tells Jokes
A list of jokes plus random.choice tells a fresh joke out loud.
Knock-knock modeStage 7It Knows Things
Use datetime, random, and math for time, date, dice, and a calculator — styled with rich.
A countdownStage 8It Understands
String methods and the in operator let it answer messy, natural sentences.
SynonymsStage 9It Remembers
A dictionary lets you teach it facts and ask for them back later.
Many memoriesStage 10It’s Connected
Fetch a live joke or fact with requests, add a personality, and demo it.
A second live skillFor camp flow
Default path first
Each stage default is enough to keep the assistant working and talking. Stretch challenges add depth when campers finish early.