python decorators

Notes

Functions themselves are parameters that can be passed to other functions for processing, similarly, a function can also be returned as a return value.

Decorator is a function that takes a function as input and returns a function as output.

Tutorial