From: Joe H. <hea...@gm...> - 2008-04-06 23:40:45
|
Thank you Bruce and Jon! Joe On Sun, Apr 6, 2008 at 7:00 PM, Bruce Sherwood <Bru...@nc...> wrote: > 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 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Register now and save $200. Hurry, offer ends at 11:59 p.m., > Monday, April 7! Use priority code J8TLD2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |