LearnPy Hub
← File Handling problems
Easy

Write Two Lines

Read two lines. Write them to two.txt (each followed by a newline), then read the whole file and print it.

Input

Two lines.

Output

Two lines.

Sample 1

Input
hello
world
Output
hello
world

Sample 2

Input
line one
line two
Output
line one
line two
solution.py
Output appears here
Write Two Lines · Python practice problem · LearnPy Hub