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.
Try the challenge
Write a clear two-line menu for a school reading game. Print “Welcome to Book Quest!” then “Choose a challenge: read or review”.
Welcome to Book Quest! Choose a challenge: read or reviewMatch 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
print("Welcome!)
print("Choose a challenge")Show debugging clue
The first message needs a closing quotation mark.
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?
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.