Skip to content

Instantly share code, notes, and snippets.

@RomanHargrave
Created February 11, 2021 04:52
Show Gist options
  • Save RomanHargrave/75315d52c29c329eeccfdfb1f856cac3 to your computer and use it in GitHub Desktop.
Save RomanHargrave/75315d52c29c329eeccfdfb1f856cac3 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
# Demonstration for Edgar
def print_with_brackets(str_):
print("[ %s ]" % str_)
def say_hi(name, printer):
printer("Hi, %s" % name)
say_hi("Edgar", print_with_brackets)
say_hi("Edgar", print)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment