Answer:
<em>#Sum of Digits</em>
a = int(input("Enter a number: "))
sumofdigits = sum(int(dig) for dig in str(number))
print("Sum of digits: ", sumofdigits)
<em># Number of digits</em>
count = 0
print ("Total number of digits : ",len(str(abs(a))))
Explanation:
It is pretty self-explanatory however, I will tell it to you anyways. So, the sum of digits iterates to each digit and adds them up. For the number of digits, it uses in-built functions (length, string and absolute)