If I want to find the sum of the digits of a number, i.e.:
932
14
(9 + 3 + 2)
Try this
print(sum(list(map(int,input("Enter your number ")))))