Computer Science

The readlines() method returns

  1. str
  2. a list of lines
  3. a list of single characters
  4. a list of integers

Python File Handling

3 Likes

Answer

a list of lines

Reason — The readlines() method returns the entire file content in a list where each line is one item of the list.

Answered By

2 Likes


Related Questions