Created
February 11, 2021 04:52
-
-
Save RomanHargrave/75315d52c29c329eeccfdfb1f856cac3 to your computer and use it in GitHub Desktop.
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
#!/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