Oops, try again - Does your digit_sum function take exactly one argument (a positive
integer)? Your code threw a “‘int’ object is not callable” error.
I’ve looked at some of the other forum feeds for this and can’t work out where this is going wrong?! please help! x
def digit_sum(n): num_str = str(n) for i in range(len(num_str)): total = 0 total += int(num_str[i]) return total