#Author: James Tam #Version: October 28, 2024 #Learning objective: #*Opening a file for writing. #*Appending single line to a file (adding that line to the end. #Opens file for apptending. #If file already exists: adds text to the end #If file doesn't exist: creates a new file with the text in the call to write. aFile = open("example1_output.txt","a") aFile.write("line2B") aFile.close()