#program calculate sum of digit in an integer

def PrintIntegersum(n):
    Sum = 0
    while (n != 0):
        rem = n %10
        Sum = Sum + rem
        n //= 10
    return Sum
#main or driver
num = int(input("Enter a Nmber: "))
print("The Sum of digits is:",PrintIntegersum(num))

653957cfa85b824a16ed158ca58b2a6f21cab18c
<mask token>

def PrintIntegersum(n):
    Sum = 0
    while n != 0:
        rem = n % 10
        Sum = Sum + rem
        n //= 10
    return Sum


<mask token>

def PrintIntegersum(n):
    Sum = 0
    while n != 0:
        rem = n % 10
        Sum = Sum + rem
        n //= 10
    return Sum


<mask token>
print('The Sum of digits is:', PrintIntegersum(num))

def PrintIntegersum(n):
    Sum = 0
    while n != 0:
        rem = n % 10
        Sum = Sum + rem
        n //= 10
    return Sum


num = int(input('Enter a Nmber: '))
print('The Sum of digits is:', PrintIntegersum(num))

#program calculate sum of digit in an integer

def PrintIntegersum(n):
    Sum = 0
    while (n != 0):
        rem = n %10
        Sum = Sum + rem
        n //= 10
    return Sum
#main or driver
num = int(input("Enter a Nmber: "))
print("The Sum of digits is:",PrintIntegersum(num))
