From 3e6359f7bc2f0425cbe35f1abea0002ffbbd089e Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Wed, 8 Dec 2021 15:02:42 +0000 Subject: day 8: do not stringify the enum value --- 8.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/8.py b/8.py index 1a55334..77c9072 100644 --- a/8.py +++ b/8.py @@ -5,7 +5,7 @@ from enum import IntEnum fset = frozenset -Seg = IntEnum('Seg', [(n, str(i)) for i, n in enumerate('ABCDEFG')]) +Seg = IntEnum('Seg', [(n, i) for i, n in enumerate('ABCDEFG')]) dig = [ fset((Seg.A, Seg.B, Seg.C, Seg.E, Seg.F, Seg.G)), -- cgit v1.2.3-54-g00ecf