def sum(*x): # this is called a stargument #starguments go at the end of the argument list. total = 0 for k in x: total += k return total print(sum(1,2,3,4,5)) #print(sum([1,2,3,4,5]))