apply function : Apply « Function « Python






apply function

apply function

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

print apply(func, (2, 3, 4))

f = lambda x, y, z: x + y + z

print apply(f, (2, 3, 4))

           
       








Related examples in the same category

1.apply function to variableapply function to variable