RosettaCodeData/Task/Higher-order-functions/Python/higher-order-functions-1.py

8 lines
102 B
Python
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
def first(function):
return function()
def second():
return "second"
result = first(second)