diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2021-12-08 15:02:42 +0000 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2021-12-08 15:02:42 +0000 |
commit | 3e6359f7bc2f0425cbe35f1abea0002ffbbd089e (patch) | |
tree | 8ec1926dfee8e91627d163804a64b425bfa3304a | |
parent | 49872237e7f8a9b06986a73b3dacbf02041e7b33 (diff) | |
download | aoc2021-3e6359f7bc2f0425cbe35f1abea0002ffbbd089e.tar.gz aoc2021-3e6359f7bc2f0425cbe35f1abea0002ffbbd089e.tar.xz aoc2021-3e6359f7bc2f0425cbe35f1abea0002ffbbd089e.zip |
day 8: do not stringify the enum value
-rw-r--r-- | 8.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)), |