Day 6 (cleanup)

This commit is contained in:
Sebastian Seedorf
2020-12-06 14:06:15 +01:00
parent 91bfe88097
commit 223c4d87d8
2 changed files with 1 additions and 3 deletions

View File

@@ -6,7 +6,6 @@ count = 0
for line in lines:
if len(line) == 0:
print("x", len(current))
count += len(current)
current = set()
current = current.union(line)

View File

@@ -10,8 +10,7 @@ for line in lines:
count += len(current)
current = set()
restart = True
continue
if restart:
elif restart:
current = line
restart = False
else: