def sum_digits(num: int) -> int:
#base case when your "positive" integer get to 0
if num == 0:
return 0
#base case when your "negative" integer get is between -10 and 0
if num > -10 and num < 0:
return num
# recursion for positive integer
elif num > 0:
return (num % 10) + sum_digits(num//10)
# recursion for negative integer
elif num < 0:
return -(abs(num) % 10) + sum_digits(-(abs(num)//10))
sum_digits(123) # returns 6
sum_digits(-123) # returns -6
number1 = 22
number2 = 16
total_number = number1 + number2
print(total_number)
#the result should be 38 :)
number3 = 12
the_total_nmbr = total_number + 12
print(the_total_nmbr) #result should be 50 now