A

Admin • 833K Points
Coach

Q. Which method reads all lines from a file into a list?

  • (A) readlines()
  • (B) readall()
  • (C) getlines()
  • (D) fetchlines()
  • Correct Answer - Option(A)
  • Views: 26
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

readlines() returns a list of all lines in the file.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.