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

8 lines
102 B
Python
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
def first(function):
return function()
def second():
return "second"
result = first(second)