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

8 lines
102 B
Python

def first(function):
return function()
def second():
return "second"
result = first(second)