Can you pass functions as arguments?

bobueland at yahoo.com bobueland at yahoo.com
Mon Dec 19 02:13:29 EST 2005


I want to calculate f(0) + f(1) + ...+ f(100) over some function f
which I can change. So I would like to create a function taking f as
argument giving back the sum. How do you do that in Python?




More information about the Python-list mailing list