PYTHON CIRCLE
Practice
Python Books
Archive
Subscribe
Login
Menu
Login
Practice
Python Books
Archive
Subscribe
SALE
This blog is available for sale. Please 'contact us' if interested.
Advertise with us
Python Multiple Choice Questions
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")
Show Answer
Next Question
Correct Answer:
B
Explanation: Execute help(open) to get more details.
© 2022-2023 Python Circle
Contact
Sponsor
Archive
Sitemap