KnowledgeBoat Logo

Computer Science

Functions readline() and readlines() are essentially the same.

Python File Handling

2 Likes

Answer

False

Reason — In Python, the readline() function reads a single line from the file and returns it as a string, while the readlines() function reads all lines from the file and returns them as a list of strings.

Answered By

1 Like


Related Questions