with open("report.txt", "w", encoding="utf-8") as f: f.write("Summary report\n") f.write("All systems normal\n") print("Report written")
Click Run to execute this code.