Last active
March 29, 2019 22:49
-
-
Save RickEyre/0ea847532e8bae7109d2ad39f14dffbe 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
# Let's say we have a function: | |
def say_hello(): | |
print("hello") | |
# Consider: | |
pointer = say_hello # the variable 'pointer' now has the function say_hello assigned to it | |
pointer() # this will print 'hello' | |
say_hello() # this will also print hello | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment