R

Rati Dubey • 8.55K Points
Tutor III

Q. Which function is used to read a line from a file in Python?

  • (A) readline()
  • (B) read()
  • (C) get()
  • (D) line()
  • Correct Answer - Option(A)
  • Views: 13
  • Filed under category Python

Explanation by: Rati Dubey
The `readline()` method reads a single line from a file.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics