Q. Which of the following opens a file for reading?
β
Correct Answer: (A)
open('file.txt', 'r')
Explanation: 'r' mode opens a file for reading.