A

Admin • 833K Points
Coach

Q. Which method reads the entire content of a file at once?

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

Explanation by: Admin

The read() method returns the full content of the file as a single string.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.