Home »
MCQs »
Python MCQs
The readline() is used to read the data line by line from the text file
70. The readline() is used to read the data line by line from the text file.
- True
- False
Answer: A) True
Explanation:
It is necessary to use readline() in order to read the data from a text file line by line. The lines are displayed by employing the print() command. When the readline() function reaches the end of the file, it will return an empty string.