<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
PRACTICE MAKES PERFECT
<In what way does your code behave incorrectly? Include ALL error messages.>
What’s wrong with my code?
<What do you expect to happen instead?>```python
Replace this line with your code.
def digit_sum(n): total = 0 while n != 0: num = int(n%10) n = n//10 total = total + num return total print digit_sum(1234)
<do not remove the three backticks above>