Differentiate between readlines() and readline() functions.
Question :
Differentiate between readlines() and readline() functions.
Python's readlines() function reads all the lines in a file, while readline() only reads one line at a time, which may help save memory.