LearnPy Hub
← File Handling problems
Easy

Write and Read

Read a line, write it to note.txt, then open the file again, read it and print the contents.

Input

One line.

Output

The same line.

Sample 1

Input
Hello file
Output
Hello file

Sample 2

Input
Python
Output
Python
solution.py
Output appears here
Write and Read · Python practice problem · LearnPy Hub