Question 11/17
beginner
Select one answer

What is the correct way to open a file in Python for reading?

file = open("file.txt", "w")
file = open("file.txt", "r")
file = read("file.txt")
file = File.open("file.txt")

Premium Question

Upgrade to unlock this question and 300+ more interview prep MCQs.