Hi guys i just can't get the code to work. I pass the exercise but I'm not getting the desired results. For example, I got a 6 as a result instead of 17. What am I doing wrong?
def digit_sum2(n): n_sum = 0 while n > 0: n_single = n%10 n_sum = 0 + n_single n = n//10 return n_sum print digit_sum2(656)