I have been at this for 30mins now and can't figure out the 'syntax error'. Please help.

```
n = input("?")
def digit_sum(n):
for digit in str(n):
total = 0
return total += int(digit)
print total
File "python", line 5
return total += int(digit)
^
SyntaxError: invalid syntax
```