winter = open('winter2003.txt','r') spring = open ('spring2003.txt','r') summer = open('summer2003.txt','r') fall = open('fall2003.txt','r')
02. Write a statement to open the file yearsummary.txt in a way that erases any existing data in the file.
03. Given a file named execution.log write the necessary code to add the line "Program Execution Successful" to the end of the file (add the statement on a new line).
f = open('execution.log','a') f.write("\nProgram Execution Successful")
04. Given that corpdata is a file object used for reading data and that there is no more data to be read, write the necessary code to complete your use of this object.
05. Use the file object output to write the string "3.14159" to a file called pi.
output = open('pi','w') output.write('3.14159')
To be Continuted...