Objective
Create a program in Python to request lines from the user and write them in a text file.
Type lines until the user presses Enter.
Files: read the lines with input() until an empty line is entered and save them, one per line, in the file output.txt (if it already exists, it is replaced). The program must not print anything.
dapibus
pretium
radar
Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.
Start exercise