diff --git a/app/main.py b/app/main.py index 1b70596b..43c31176 100644 --- a/app/main.py +++ b/app/main.py @@ -1,6 +1,13 @@ -def main(): - # write your code here - pass +def main() -> None: + file_name = input("Enter name of the file: ") + ".txt" + with open(file_name, "w") as f: + + while True: + text = input("Enter new line of content: ") + if text == "stop": + break + f.write(text) + f.write("\n") if __name__ == "__main__":