Create a program in Python to calculate the sum of the digits in a number using recursion.
number = 1234
def sum_of_digits(number):
 if len(str(number)) == 1:
  return number
 else:
  return number % 10 + sum_of_digits(number // 10)

# example
sum_of_digits(1234)
# returns 10