If I want to find the sum of the digits of a number, i.e.:
932
14
(9 + 3 + 2)
It only works for three-digit numbers, but it works
a = int(input()) print(a // 100 + a // 10 % 10 + a % 10)