-
Overview
def function_name(): print("haha")
function_name
is a reference to the function;function_name()
refers to the result of evaluating the function; -
References
- Real Python: Primer on Python Decorators
- StackOverflow: Calling a function of a module by using its name (a string)