M

Mr. Dubey • 100.28K Points
Coach

Q. Which method reads the entire content of a file as a single string?

  • (A) readline()
  • (B) read()
  • (C) readlines()
  • (D) readall()
  • Correct Answer - Option(B)
  • Views: 28
  • Filed under category Python

Explanation by: Mr. Dubey
The read() method reads the entire file content as one string.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics