Hi, I’m trying to figure out what I"m missing on this code. What I’ve tried is below:

```
def digit_sum(n):
from math import floor
total = 0
x = n # x = n == 1234
while x > 0: # x > 0
i = x % 10 # i = x % 10 == 4
total += i # total += i == 0 + 4
x = floor(n/10) # x = floor(n/10) == 123
# repeat until x == floor(1/10) == 0
return total
print total
number=(int(raw_input('gimme dat num: ')))
digit_sum(number)
```

It isn’t throwing an error when I run the code, it just times out eventually, so I’m guessing I’ve missed something with resolving the loop conditions? Using their sample number, I feel like the code should be working just fine…