AOC_Day1/helper.py

11 lines
302 B
Python
Raw Normal View History

2025-03-10 18:35:22 +00:00
def load_lists():
list_1 = []
list_2 = []
with open('./input.txt', 'r') as reader:
for l in reader:
ids = l.split(' ')
list_1.append(int(ids[0]))
list_2.append(int(ids[1]))
list_1.sort()
list_2.sort()
return list_1, list_2