Skip to content

Instantly share code, notes, and snippets.

@RickEyre
Last active March 29, 2019 22:49
Show Gist options
  • Save RickEyre/0ea847532e8bae7109d2ad39f14dffbe to your computer and use it in GitHub Desktop.
Save RickEyre/0ea847532e8bae7109d2ad39f14dffbe to your computer and use it in GitHub Desktop.
# 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