Hello, I'm doing "Practise Makes Perfect" and I'm currently in "4. digit_sum".
This is the code I have:
def digit_sum(n): if n > 0: n = str(n) numbers =  for i in range(len(n)): numbers.append(n[i]) numbers = int(numbers) for i in range(len(numbers)): return sum(i) else: print "Your number must be bigger than zero."
and I'm getting the error
Oops, try again. Your function crashed on 434 as input because your function throws a "int() argument must be a string or a number, not 'list'" error.
I think the error is in the numbers = int(numbers) line but I don't really know how to fix it.
Any help would be appreciated.