1000 Python Questions
Get 1 Python question daily. Join this telegram channel
Advertise with us
Python Multiple Choice Questions
To open a file c:\scores.txt for appending data, we use
A. outfile = open("c:\\scores.txt", "a")
B. outfile = open("c:\\scores.txt", "rw")
C. outfile = open(file = "c:\scores.txt", "w")
D. outfile = open(file = "c:\\scores.txt", "w")
Explanation: a is used to indicate that data is to be appended.
Please subscribe to get the latest articles in your mailbox.
© 2021-2022 Python Circle