Q. Which of the following is the correct way to open a file for reading?
β
Correct Answer: (B)
open('file.txt', 'r')
Explanation: 'r' mode is used to open a file for reading.