text = "a1b2c3d4e5"
number = [int(num) for num in text if num.isdigit()]

total = sum(number)
print(total)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: