is there a way of having an (yet unkown) function as an argument of a function in python:
def doSomething(<func>):
#do something with func()
at a later stage, functions could be defined, eg:
def f1(x):
return x*x
def f2(x):
return x+1
and I could call now:
doSomething(f1,x1)
doSomething(f2,x1)