Here’s a link to the exercise:
I keep getting this error and can’t figure out what’s wrong: Oops, try again. Does your digit_sum function take exactly one argument (a positive integer)? Your code threw a “‘int’ object is not iterable” error.
Here’s my code:
def digit_sum(n): str(n) numbers =  answer = 0 for let in n: numbers.append(let) for dig in numbers: int(dig) answer += dig return answer