QUESTION IMAGE
Question
question # 5
multiple choice
you have three modes for opening a file. you wish to add to an existing file.
what letter belongs in this line of code?
myfile = open(\another.txt\, \____\)
d
w
a
r
Brief Explanations
In Python, the 'a' mode is used for appending to an existing file. 'd' is not a standard file - opening mode. 'w' overwrites the existing file if it exists and creates a new one if it doesn't. 'r' is for reading an existing file.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
C. a