

InterviewSolution
Saved Bookmarks
1. |
What is the use of “w” in file handling?(a) Read(b) Write(c) Append(d) None of the mentioned |
Answer» Right choice is (b) Write The best I can explain: This opens the file for writing. It will create the file if it doesn’t exist, and if it does, it will overwrite it. fh = open(“filename_here”, “w”). |
|