By the principle that i would like to change the function test_var_args_call to receive an extensive list of arguments, how i could achieve that using *args on the function?
Bellow, im sending an example of what i have so var.
def test_var_args_call(arg1, arg2, arg3,arg4,arg5,arg6,arg7,arg8,arg9):
print arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9
args = (1,2,3,4,5,6,7,8,9)
test_var_args_call(*args)
Basicaly, instead having:
def test_var_args_call(arg1, arg2, arg3,arg4,arg5,arg6,arg7,arg8,arg9)
what i would like is:
def test_var_args_call(**args)
Use one asterix and it’ll work:
or perhaps:
if you want your output to match exactly.