From 9e1ce0e8f2d838e652fd592257b3dc3c8fe2fc23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Wed, 16 Dec 2020 18:47:22 +0100 Subject: 16: unneeded enumerate --- 20/py/d16.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '20/py/d16.py') diff --git a/20/py/d16.py b/20/py/d16.py index f6b7f46..ed9b224 100644 --- a/20/py/d16.py +++ b/20/py/d16.py @@ -42,7 +42,7 @@ def pt2(_in): # assume it can be anything candidates = [set(range(20)) for _ in range(20)] # one set per field - for t, ticket in enumerate(tickets): + for ticket in tickets: for f, field in enumerate(ticket): for c, constraint in enumerate(constraints): if c in candidates[f] and not any(field in cons for cons in constraint): -- cgit v1.2.1