This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user