Skip to content

Instantly share code, notes, and snippets.

@MarkMichon1
Created November 11, 2019 02:02
Show Gist options
  • Save MarkMichon1/8492f3827091fd6d0cfb8e945c76bddc to your computer and use it in GitHub Desktop.
Save MarkMichon1/8492f3827091fd6d0cfb8e945c76bddc to your computer and use it in GitHub Desktop.
first class function example
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