-
-
Save MarkMichon1/8492f3827091fd6d0cfb8e945c76bddc to your computer and use it in GitHub Desktop.
first class function example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def say_hi(): | |
return 'hi!' | |
def say_bye(): | |
return 'bye!' | |
def print_something(input_function): | |
print(input_function()) | |
print_something(say_hi) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment