What are decorators in python?

Decorators in Python.

A decorator is a design pattern in Python that allows a user to add new functionality to an existing object without modifying its structure. Decorators are usually called before the definition of a function you want to decorate. In this tutorial, we’ll show the reader how they can use decorators in their Python functions.