input = [] with open('day5_input.txt', 'r') as f: for line in f.readlines(): input.append(line.strip())