Vidyalelo
Python · Q79

Files Handling in Python

Programming · Python · question 79

Q79

What is the purpose of the readlines() method in file handling?

A.
It reads all lines of a file into a list
Answer
B.
It writes lines to the file
C.
It appends lines to the file
D.
It closes the file

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board