def sum_digits(digit):
return sum(int(x) for x in digit if x.isdigit())
print(sum_digits('texto123numero456x7'))
#https://pt.stackoverflow.com/q/42280/101
ZGVmIHN1bV9kaWdpdHMoZGlnaXQpOgogICAgcmV0dXJuIHN1bShpbnQoeCkgZm9yIHggaW4gZGlnaXQgaWYgeC5pc2RpZ2l0KCkpCgpwcmludChzdW1fZGlnaXRzKCd0ZXh0bzEyM251bWVybzQ1Nng3JykpCgojaHR0cHM6Ly9wdC5zdGFja292ZXJmbG93LmNvbS9xLzQyMjgwLzEwMQ==