Appearance
You are given a two-digit integer n. Return the sum of its digits.
n
For n = 29, the output should be
n = 29
add_two_digits(n) = 11
def add_two_digits(n): n = str(n) if len(n) == 1: return int(n) else: return int(n[0]) + int(n[1]) print(add_two_digits(29))