Mark As Completed Discussion

Let's test your knowledge. Click the correct answer from the options.

Which method can be used to read one line at a time from a file in Python?

Click the option that best answers the question.

  • read()
  • readline()
  • readlines()
  • write()