diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2020-12-09 07:58:32 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2020-12-09 07:58:32 +0100 |
| commit | 15a72a4f3a6e7b9276f3f501f3d29ee2d92666eb (patch) | |
| tree | 82b7771b936ff9fab71c0707c1bd7f79a2218a47 /20/py/d04.py | |
| parent | 26654567a4abd6e19766e946f769c6061f350d32 (diff) | |
| download | aoc-15a72a4f3a6e7b9276f3f501f3d29ee2d92666eb.tar.gz | |
add driver
Diffstat (limited to '20/py/d04.py')
| -rw-r--r-- | 20/py/d04.py | 3 |
1 files changed, 0 insertions, 3 deletions
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 |
