Python functions are first class objects

In fact, python functions are first class objects, meaning they…

  1. Are created at runtime
  2. Can be assigned to a variable or element in data structure
  3. Can be passed as an argument to a function
  4. Can be returned by a function.