πŸ“Š Python
Q. Which one of the following syntaxes is the correct syntax to read from a simple text file stored in ”d:\java.txt”?
  • (A) Infile = open(”d:\\java.txt”, ”r”)
  • (B) Infile = open(file=”d:\\\java.txt”, ”r”)
  • (C) Infile = open(”d:\java.txt”,”r”)
  • (D) Infile = open.file(”d:\\java.txt”,”r”)
πŸ’¬ Discuss
βœ… Correct Answer: (A) Infile = open(”d:\\java.txt”, ”r”)

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
508
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
83%
Success Rate