readlines() is a built-in function in Python that reads all the lines from a file and returns them as a list of strings. Each string represents a single line from the file, including the newline character at the end of each line. This function is particularly useful when you need to process the contents of a file line by line.
congrats on reading the definition of readlines(). now let's actually learn it.