Which of the following methods returns a list of strings, where each string…
2026
Which of the following methods returns a list of strings, where each string represents a single line from the text file?
Answer: C. readlines()
- A.
read()
- B.
readline()
- C.
readlines()
- D.
list_read()
Attempted by 347 students.
Show answer & explanation
Correct answer: C
Loading lesson…