DPython for KidsModule 3 · Lesson 3.3
LESSON 3.3 · 45 MINUTES

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?

SAFE PYTHON RUNNER

Try the challenge

No files · no network · safe lesson commands only

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”.

Target output
Choose a character: 
Choose a mission: 
Adventure: Luna find the map
Match 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.

Output
Your output will appear here.
DEBUG DETECTIVE

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.

QUICK CHECK

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?

Stretch practice · self check

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.