How to call a function with argument list in Python?
In the following code
def baz1(foo, *args): # with star\n foo(*args)\ndef baz2(foo, args): # without star\n foo(*args)\ndef foo2(x, y, z):\n print x+y+z\nbaz1(foo2, 2, 3, 4)\nbaz2(foo2, [2, 3, 4])
I am able to pass an argument list to a python function both implicitly and explicitly and call it. How was this made possible?