Python Programming while loop

How do you write a python program with a while loop that finds the sum of all digits of an input (For example, if the input is 32677, the sum would be 3 + 7 + 7 = 17)