Mega Code Archive

 
Categories / Python / Function
 

Apply function to variable

args = (2,3) + (4,) print args def func(x, y, z): return x + y + z apply(func, args)