Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question # 5 multiple choice you have three modes for opening a file. y…

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

Explanation:

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.

Answer:

C. a