pyPython Practice LabFrom first print to final round
PYTHON PROBLEM 001 · Starter

Echo a message

A coding club wants its announcement displayed exactly as entered.

input · printinputprint
PROBLEM OVERVIEW

What this Python exercise asks you to practise

This scenario tests echo a message. It belongs to the Python Foundations roadmap and uses the input · print pattern.

Programs, values, variables, input(), print(), and basic type conversion.

INPUT FORMAT

Program input

One line of text.

VERIFIED SAMPLE CASES

Input and expected output

Normal case

A coding club wants its announcement displayed exactly as entered.

Sample input
Python practice starts today
Expected output
Python practice starts today

Why: input() reads a line as text. print() writes the same value to the console.

Boundary or variation

A support tool must echo a status message containing spaces and punctuation.

Sample input
Build #42: ready!
Expected output
Build #42: ready!

Why: input() reads a line as text. print() writes the same value to the console.

PYTHON SOLUTION

Reference answer with explanation

message = input()
print(message)

input() reads a line as text. print() writes the same value to the console.

Common beginner check: Forgetting that input() returns text, even when the user types a number.

READY TO PRACTISE?

Open the guided learning workspace

Trace the logic and reveal the line-by-line explanation. The browser compiler unlocks with complete access.

Open problem 1
SKILL TO CARRY FORWARD

Pattern relevance

This exercise strengthens input · print. Be ready to explain the input, the rule, the boundary cases, and why the chosen approach is appropriate.