I'm not actually stuck on this exercise, I am just wondering if there is an easier way to complete it than what I did. It took quite a bit of debugging to get it to function properly. If anyone has any tips on how it might have been simplified, please let me know

```
def digit_sum(n):
total = 0
number_of_numbers = 0
n = str(n)
while number_of_numbers < len(n):
for number in n:
number_of_numbers += 1
total += int(number)
return total
```