Question: what is the difference between readline and readlines in python?
Answer: The readline method reads one line from the file and returns it as a string. The string returned by readline will contain the newline character at the end. ... The readlines method returns the contents of the entire file as a list of strings, where each item in the list represents one line of the file.