When working with files in Python, what does the readlines() method do?

1
Reads the entire file into a single string
2
Reads the next line from the file
3
Reads all lines from the file and returns them as a list of strings
4
Converts the file contents into a dictionary

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation