This commit is contained in:
Sebastian Seedorf
2021-12-08 10:52:24 +01:00
parent cabc7c4fdd
commit b9234d03c0
3 changed files with 305 additions and 0 deletions

5
day08/part1.py Normal file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env python3
lines = (x.strip().split(' | ')[1].split() for x in open("input.txt"))
print(sum(sum(len(x) <= 4 or len(x) >= 7 for x in line) for line in lines))