When using the readlines() method of a file object, how are the lines returned if the file contains multiple lines?

1
As a concatenated single string
2
As a tuple, with each line as an element
3
As a list, with each line as an item, including the newline characters
4
As a dictionary, with line numbers as keys and lines as values

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation