1.

What is the use of “a” in file handling?(a) Read(b) Write(c) Append(d) None of the mentioned

Answer» Right choice is (c) Append

The explanation is: This opens the fhe file in appending mode. That means, it will be open for writing and everything will be written to the end of the file.

fh =open(“filename_here”, “a”).


Discussion

No Comment Found