Answers for "difference between calling a function and referencing a function python"

0

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"
Posted by: Guest on May-24-2020

Code answers related to "difference between calling a function and referencing a function python"

Python Answers by Framework

Browse Popular Code Answers by Language