parent
305d35409d
commit
f7dbd317f8
1 changed files with 9 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) |
Loading…
Reference in new issue