"Oops, try again. Your function fails on digit_sum(434). It returns 22 when it should return 11."
Python is saying that digit_sum(434) is adding to 22. When I print to interpreter, it shows as 11.
I expected it to return 11.
numberz =  def digit_sum(n): x = str(n) for digit in x: numberz.append(int(digit)) print sum(numberz) return sum(numberz) digit_sum(434)