How to use Decorators in Python

Jack Dong
5 min readAug 21, 2022

Decorators are a significant part of python. In simple words: it is a programming technique to extend the functionality of classes or functions without modifying them.

In this tutorial, you will learn:

  • What is the decorator, and why is it useful
  • Function decorators and how to use them

Everything in Python is an object

--

--