apply function to variable : Apply « Function « Python






apply function to variable

apply function to variable
args = (2,3) + (4,)
print args


def func(x, y, z): return x + y + z

apply(func, args)


           
       








Related examples in the same category

1.apply functionapply function