with open("test_write.txt", "w") as f: f.write("Hello World") print("Write test done")