with open("output1", "w") as f: f.write("hello world")