if i just read my sum_digits function here, it makes sense in my head but it seems to be producing wrong results. Any tip?
sum_digits
def is_a_digit(s): \
Another way of using built in functions, is using the reduce function:
>>> numeric = lambda x: int(x) if x.isdigit() else 0 >>> reduce(lambda x, y: x + numeric(y), 'hihello153john', 0) 9