Q1
How do you open a file named data.txt in read mode in Python?
A.
file = open('data.txt', 'r')
AnswerB.
file = open('data.txt', 'read')
C.
file = open('data.txt', 'read mode')
D.
file = open('data.txt')
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board