difference between calling a function and referencing a function python code example
Example: difference between calling a function and referencing a function python
def caller(f):
f()
def hello():
print("hi")
def goodbye():
print("bye")
caller(hello) # Prints "hi"
caller(goodbye) # Prints "bye"