Callback function

Page content
  • It is a function that can accept other functions as parameters.
def listnum(x, f): # := f is a function name
    return x + f(x)