Python Multiple Lines
print × 2 Practice

Multiple lines of output

Each print() is one line on a receipt or bus display. Programs often print several lines to show steps, labels, or results.

Picture this: one print per line

Each print() is a new ticket on the screen, in the order you write them.

print line 1first ticket
→
print line 2second ticket
→
print line 3third ticket

Order in the file = order on the screen.

In easy words: What is multiple-line output?

It means showing more than one line in the terminal. Each print() call usually creates one new output line.

Where this is used

Used in receipts, reports, summaries, logs, menus, and command-line tools that display information line by line.

Real world: bus LED display

A city bus screen shows Line 1: Route 42 then Line 2: Next stop — Library. Two print() calls do the same: first line, then second line.

Step through each print

1print("Line 1")
2print("Line 2")
Press "Next print" to simulate execution
0 / 2 lines printed

Execution order matters

  • Python runs top to bottom — line 1 before line 2.
  • Your practice output must be exactly two lines: Line 1 then Line 2.

Example Program

1print("Line 1")
2print("Line 2")