How to write a function (sum_it_up) that takes any number of parameters and returns to sum?
For instance this should print 22:
total=sum_it_up(1,4,7,10)
print(total)
Solution:
def sum_it_up (a,b,c,d):
print("The total is {0}".format(a+b+c+d))
sum_it_up(1,4,7,10)
sum_it_up(1,2,0,0)
The above solution is missing the return statement. Any ideas? Thanks!