I am trying to get my head around this one.
So here is what I want to do: I have three functions. say, foo,bar and foo_bar
def foo_bar(function):
for i in range(20):
function # execute function
def foo(someargs):
print "hello from foo"
def bar(someargs):
print " hello from bar"
and when i do foo_bar(foo) # how to specify arguments to foo??
I am expecting that I see "hello from foo" 20 times?
But since I am not seeing that.. I clearly dont understand this well enough?