2020 day4/python: fix last passport not being read

This commit is contained in:
Xiretza 2020-12-04 15:39:48 +01:00
parent d329518529
commit b923627c26

View file

@ -44,6 +44,9 @@ def split_on(f, it):
else:
current_part.append(el)
if current_part != []:
yield current_part
if __name__ == '__main__':
with open('input.txt', 'r') as f:
lines = [line.strip() for line in f.readlines()]