Calculate the sum of digits.
n (int) – Number.
Sum of digitis of n.
int
Examples
>>> sum_digits(42) 6