Update day 8 solution
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-12-08 09:05:44 +01:00
parent 23b82701b9
commit 06e7f08586

View File

@@ -9,13 +9,7 @@ def part_1(input):
_, out = line.strip().split(' | ')
out = out.split()
for d in out:
if len(d) == 2:
result += 1
elif len(d) == 4:
result += 1
elif len(d) == 3:
result += 1
elif len(d) == 7:
if len(d) in [2, 3, 4, 7]:
result += 1
print("Part 1 result:", result)