day4/python: fix last passport not being read

This commit is contained in:
Xiretza 2020-12-04 15:39:48 +01:00
parent b911869704
commit 49192977f4
Signed by: xiretza
GPG key ID: 17B78226F7139993

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()]