https://www.codecademy.com/courses/python-intermediate-en-rCQKw/0/4?curriculum_id=4f89dab3d788890003000096#

Is this the most efficient way to answer this question or is there a simpler way to do it?

```
def digit_sum(n):
n = str(n)
sum = 0
count = 0
for i in n:
sum = sum + int(n[count])
count += 1
return sum
```