parent
90029028be
commit
5d22aae8fe
3 changed files with 1016 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) |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@ |
||||
two1nine |
||||
eightwothree |
||||
abcone2threexyz |
||||
xtwone3four |
||||
4nineeightseven2 |
||||
zoneight234 |
||||
7pqrstsixteen |
Loading…
Reference in new issue