The following works beautifully in Python:
def f(x,y,z): return [x,y,z] a=[1,2] f(3,*a)
The elements of a get unpacked as if
a
Thanks to the PEP 448 - Additional Unpacking Generalizations,
f(*a, 3)
is now accepted syntax starting from Python 3.5. Likewise you can use the double-star ** for keyword argument unpacking anywhere and either one can be used multiple times.
**