A

Admin • 833K Points
Coach

Q. Which method reads one line at a time from a file?

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

Explanation by: Admin

readline() returns one line at a time from the file.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.