Before starting about decorators, first, understand that functions in python have below three properties.

  1. Functions are objects. Which means we can assign the function to a variable.
  2. A function can be defined inside another function
  3. A function can return another function

#python

The simplest explanation of Decorators in Python
7.35 GEEK