CBSE Class 12 Computer Science Question 130 of 136

Data File Handling — Question 18

Back to all questions
18
Question

Question 18

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

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.