Here we will see how to open the file, read the contents to a list variable with a line per list item. Reading a file into a list is quiet simple in python.