Examveda
Examveda

To open a file c:\scores.txt for reading, we use . . . . . . . .

A. infile = open(“c:\scores.txt”, “r”)

B. infile = open(“c:\\scores.txt”, “r”)

C. infile = open(file = “c:\scores.txt”, “r”)

D. infile = open(file = “c:\\scores.txt”, “r”)

Answer: Option B


This Question Belongs to Python Program >> Files Handling In Python

Join The Discussion

Related Questions on Files Handling in Python