text = "a1b2c3d4e5" number = [int(num) for num in text if num.isdigit()] total = sum(number) print(total)
To embed this project on your website, copy the following code and paste it into your website's HTML: