f = open("notes.txt", "w") f.write("First line of notes\n") f.close() print("File saved and closed")
Click Run to execute this code.