diff --git a/day06/part1.py b/day06/part1.py index 2e4c581..ee2d549 100644 --- a/day06/part1.py +++ b/day06/part1.py @@ -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) diff --git a/day06/part2.py b/day06/part2.py index aee016a..8f76906 100644 --- a/day06/part2.py +++ b/day06/part2.py @@ -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: