Using an iterable to pass multiple arguments to a function.
- arguments
- function
- splat
>>> def foo(a, b, c):
return a + b + c
>>> a = [1, 2, 3]
>>> foo(*a)
6
Using an iterable to pass multiple arguments to a function.
>>> def foo(a, b, c):
return a + b + c
>>> a = [1, 2, 3]
>>> foo(*a)
6