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
1 changed files with 3 additions and 0 deletions

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