From 223c4d87d8869b8f4dac61bd323d4e33b0775de9 Mon Sep 17 00:00:00 2001 From: Sebastian Seedorf Date: Sun, 6 Dec 2020 14:06:15 +0100 Subject: [PATCH] Day 6 (cleanup) --- day06/part1.py | 1 - day06/part2.py | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) 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: