Question: what is the difference between read and readlines in python?
Answer: read() reads the file as an individual string, and so allows relatively easy file-wide manipulations, such as a file-wide regex search or substitution. f. readline() reads a single line of the file, allowing the user to parse a single line without necessarily reading the entire file.