Computer Science
readlines() function returns a list of strings, each separated by "\n".
Python Data Handling
1 Like
Answer
True
Reason — The readlines() function reads all lines from the file into a list. It starts reading from the cursor position up to the end of the file and returns a list of strings, with each string separated by the newline character '\n'.
Answered By
3 Likes
Related Questions
A file mode defines the type of operations that is to be performed on the file.
A stream is defined as a sequence of characters.
Data maintained inside the file is termed as "persistent" (permanent in nature) data.
'with' statement ensures that all the resources allocated to the file objects get deallocated automatically.