From 15a72a4f3a6e7b9276f3f501f3d29ee2d92666eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Wed, 9 Dec 2020 07:58:32 +0100 Subject: add driver --- 20/py/d04.py | 3 --- 1 file changed, 3 deletions(-) (limited to '20/py/d04.py') diff --git a/20/py/d04.py b/20/py/d04.py index a0a58a1..d0387f6 100644 --- a/20/py/d04.py +++ b/20/py/d04.py @@ -77,9 +77,7 @@ def pt2(_in): want = {s for s in "byr iyr eyr hgt hcl ecl pid cid".split()} for line in _in: - print(repr(line)) if line == "\n": - print(want) if len(want) == 0 or (len(want) == 1 and "cid" in want): valid += 1 want = {s for s in "byr iyr eyr hgt hcl ecl pid cid".split()} @@ -88,7 +86,6 @@ def pt2(_in): k, v = entry.strip().split(":") if valid_entry(k, v): want.remove(k) - print(want) if len(want) == 0 or (len(want) == 1 and "cid" in want): valid += 1 return valid -- cgit v1.2.1