Which mode opens a file for appending text in Python?
Correct answer
B. 'a'
B. 'a'
'a' appends to the end; 'w' truncates the file.
Asked in: Python Interview File Handling
https://docs.python.org/3/tutorial/inputoutput.htmlNot sure why the answer is B? Ask here and get an explanation.