n=int(input("Enter a number : "))
def digitsum(n):
	if(n==0):
		return 0
	else:
		return n%10+digitsum(n//10)    
print("sum of digits of",n,"is",digitsum(n))












2b2c358faa21b1510f31b0e6e0c330815ca0a150
<mask token>

<mask token>


def digitsum(n):
    if n == 0:
        return 0
    else:
        return n % 10 + digitsum(n // 10)


<mask token>

<mask token>


def digitsum(n):
    if n == 0:
        return 0
    else:
        return n % 10 + digitsum(n // 10)


print('sum of digits of', n, 'is', digitsum(n))

n = int(input('Enter a number : '))


def digitsum(n):
    if n == 0:
        return 0
    else:
        return n % 10 + digitsum(n // 10)


print('sum of digits of', n, 'is', digitsum(n))

n=int(input("Enter a number : "))
def digitsum(n):
	if(n==0):
		return 0
	else:
		return n%10+digitsum(n//10)    
print("sum of digits of",n,"is",digitsum(n))











