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

Echo a message: Preserve punctuation

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

Read → convert → compute → printinputprint
PROBLEM OVERVIEW

What this Python exercise asks you to practise

This scenario tests echo a message. It belongs to the Python Fundamentals and Input/Output roadmap and uses the read → convert → compute → print pattern.

Start here. Practice input(), print(), variables, numbers, formatting, and small formulas.

INPUT FORMAT

Program input

One line of text.

SAMPLE CASE

Input and expected output

Sample input
Build #42: ready!
Expected output
Build #42: ready!
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 2
INTERVIEW CONTEXT

Skills and reported company tags

Interview platforms and learner reports associate this problem family with the companies below. Tags are preparation signals, not a guarantee that an identical question will appear.

TCSInfosysAccenture