L9 1

def split(num):
    return num // 10, num % 10

def sum_digits(num):
    """Return the sum of the digits of non-negative integer y."""
    if num <10:
        return num
    else:
        rest,last_digit = split(num)
        return sum_digits(rest) + last_digit

print(sum_digits(123))