If I want to find the sum of the digits of a number, i.e.:
932
14
(9 + 3 + 2)
n = str(input("Enter the number\n")) list1 = [] for each_number in n: list1.append(int(each_number)) print(sum(list1))