R

Ram Sharma • 193.86K Points
Coach

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”)
  • Correct Answer - Option(A)
  • Views: 260
  • Filed under category Python

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics