Question 1

Consider the following line of code:

with open(example1,"w") as file1:

What mode is the file object in?


Question 2

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")


Question 3

What do the following lines of code do?

with open("Example3.txt","w") as file1:
  
file1.write("This is line C\n")