with open("data.txt", "w") as f:
    f.write("Hello\nWorld\nPython")

with open("data.txt", "r") as f:
    content = f.read()

print(content)
