First Class functions in Python
- In Python when
functions treated like any other variablethen they are term as First-class functions - Properties of first class functions:
- Assign to a variable.
- Pass the function as a parameter to another function.
- Return a function from another function.