You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

9 lines
179 B

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)