input: Write a python function to calculate the sum of the digits of a number.
  assert sum_digits(323) == 8
  assert sum_digits(12345) == 15
  assert sum_digits(0) == 0
output: def sum_digits(n):
      return sum(int(digit) for digit in str(n))