I'm curious if there is a way to provide an arbitrary number of parameters to a function. Viz.
def sum2(*args):
return sum2(args)
input = [1, 2, 3, 4, 5]
sum2(1, 2, 3, 4, 5)
sum2(input)
Or pass the values in array "input" to the function such that the two calls are the same. I know there is an easy workaround for the particular example, but, in general, is this possible?
Edit: Corrected example