Storing Function Reference in a Variable

Learn how to store the reference to a function in a variable. Also, observe how functions are treated as objects in Python.

Variable vs. function initialization and usage

When you look at the way a variable is initialized and used in Python and compare it to the way a function is declared and used, you might easily assume that variables and functions are completely different things.

Get hands-on with 1200+ tech skills courses.