Consider the following line of code:
with open(example1,"w") as file1:
What mode is the file object in?
What do the following lines of code do?
with open("Example.txt","a") as writefile:
writefile.write("This is line A\n")
writefile.write("This is line B\n")
What do the following lines of code do?
with open("Example3.txt","w") as file1:
file1.write("This is line C\n")