A

Admin • 833.24K 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
  • Hashtags:

Explanation by: Admin

The read() method reads the entire file content as one string.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.