I am writing a function of Python would like to sum all the number in a tuples but it.s get wrong after run
def sumall(*x):
sm=0
for i in len (x):
sm= x[i] + sm
print sm
It.s contain into object is not iterable error when I input
sumall (1,2,3)
Please help me