I’m very new to python and have no programming background. I’m currently working on the following code to sum up 10 numbers:
num = input("Enter 10 numbers:") sum = 0 while(num!=0): remainder = int(num)%10 sum=sum+remainder num=num//10 print("The sum of the number is:", sum)
I always get the error: TypeError: not all arguments converted during string formatting.
Could anybody help me? Any tips are appreciated!