In a card game, a card's power is the sum of the digits of its number. Write digit_sum(n): card 123 has power 1 + 2 + 3 = 6. n is 0 or a positive whole number.
digit_sum(123)→6digit_sum(909)→18def digit_sum(n):
total = 0
for ch in str(n):
# your code here: turn this digit back into a number, add it to total
pass
return total
Run tries the examples. When they look right, Submit.