πŸ“Š Python
Q. What is the correct syntax for reading from a text file stored in “c:\file.txt”?
  • (A) f = open('c:\file.txt', 'r')
  • (B) f = open(file='c:\\\file.txt', 'r')
  • (C) f = open.file('c:\\file.txt', 'r')
  • (D) f = open('c:\\file.txt', 'r')
πŸ’¬ Discuss
βœ… Correct Answer: (D) f = open('c:\\file.txt', 'r')

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
233
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Tanmay
Publisher
πŸ“ˆ
87%
Success Rate