parent
462dc84ecf
commit
01e799b65c
2 changed files with 16 additions and 0 deletions
@ -0,0 +1,9 @@ |
||||
lines = [i for i in open("input.txt", 'r').read().splitlines()] |
||||
|
||||
sum = 0 |
||||
|
||||
for l in lines: |
||||
n = "".join(c for c in l if not c.isalpha()) |
||||
sum += int(n[0] + n[-1]) |
||||
|
||||
print(sum) |
@ -0,0 +1,7 @@ |
||||
two1nine |
||||
eightwothree |
||||
abcone2threexyz |
||||
xtwone3four |
||||
4nineeightseven2 |
||||
zoneight234 |
||||
7pqrstsixteen |
Loading…
Reference in new issue