Workout #2: Summing Numbers
Sep 16, 2021
The challenge here is to write a mysum function that does the same thing as the built-in sum function. However, instead of taking a single sequence as a parameter, it should take a variable number of arguments. Thus, although you might invoke sum([1,2,3]), you’d instead invoke mysum(1,2,3) or mysum(10,20,30,40,50)
TRY IT YOURSELF
ANSWER
https://colab.research.google.com/drive/14CSoUuK3oGWuizFiCk38CrfUmdKuiwN0?usp=sharing