# open the file in read-only mode file = open("dreams.txt", 'r') poem = [ line for line in file ] for line in poem: print(line)