DPython for KidsModule 2 · Lesson 2.1
LESSON 2.1 · 30 MINUTES

Printing Messages

Programs use output to guide, inform and encourage people.

Discover

  • print() displays output.
  • Commas can combine values with a space.
  • Clear messages help people understand a program.

Try, explain and change

Try: Write a clear two-line menu for a school reading game. Print “Welcome to Book Quest!” then “Choose a challenge: read or review”.

Change: Replace read or review with two different safe activities.

SAFE PYTHON RUNNER

Try the challenge

No files · no network · safe lesson commands only

Write a clear two-line menu for a school reading game. Print “Welcome to Book Quest!” then “Choose a challenge: read or review”.

Target output
Welcome to Book Quest!
Choose a challenge: read or review
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

print("Welcome!)
print("Choose a challenge")
Show debugging clue

The first message needs a closing quotation mark.

QUICK CHECK

What does print() do?

Stores a password

Not this time. Review Discover and try again.

Shows output

Correct — well reasoned.

Closes Python

Not this time. Review Discover and try again.

Create and reflect

Create: Write a three-line menu for a learning game.

Reflect: What makes an instruction easy for a user to understand?

Stretch practice · self check

Ask a friend to read your menu and tell you whether the two choices are clear.

Edit and run your code again to explore this variation. It does not change lesson completion.