Build an Interactive Program
Combine input, variables and output into your first interactive creation.
Discover
- Plan what your program asks, stores and displays.
- Test with more than one safe answer.
- Helpful output repeats the choice clearly.
Try, explain and change
Try: Build an adventure starter. Ask for a fictional character and a mission, then print “Adventure:” followed by both answers. The runner supplies “Luna” and “find the map”.
Change: Imagine “Ari” and “save the library”. Does your code use both new answers?
Try the challenge
Build an adventure starter. Ask for a fictional character and a mission, then print “Adventure:” followed by both answers. The runner supplies “Luna” and “find the map”.
Choose a character: Choose a mission: Adventure: Luna find the mapMatch the lines and order. Your code must use the lesson concept.
The runner supports this pathway’s controlled Python concepts while blocking packages, files, networks and system commands.
Your output will appear here.
Find the bug
character = input("Choose a character: ")
mission = input("Choose a mission: ")
print("Adventure:", character mission)Show debugging clue
Separate character and mission with a comma.
What should you do before sharing a program?
Test different answers
Correct — well reasoned.
Add private details
Not this time. Review Discover and try again.
Remove all instructions
Not this time. Review Discover and try again.
Create and reflect
Create: Create and test a short interactive story starter.
Reflect: What did your test reveal about your program?
Add a setting question, such as forest or museum, without asking for anyone’s private information.
Edit and run your code again to explore this variation. It does not change lesson completion.