python how to get a line in a text code example Example: readlines from file python f = open("file.txt", 'r') print(f.readlines()) # array of file lines