From: Bruce S. <Bru...@nc...> - 2008-04-06 23:00:25
|
def add(a,b): return a+b def mult(a,b): return a*b def process(function, a, b): return function(a,b) print process(mult, 5, 3) # prints 15 Joe Heafner wrote: > Can a function be passed as a parameter to another function in Python? I > can't find any clear examples. > > Joe |