LearnPy Hub
← File Handling problems
Easy

Append Lines

Write start to log.txt. Then read n words and append each on its own line. Finally print the whole file.

Input

n, then n words.

Output

The file contents.

Sample 1

Input
2
x
y
Output
start
x
y

Sample 2

Input
0
Output
start
solution.py
Output appears here
Append Lines · Python practice problem · LearnPy Hub