Before starting about decorators, first, understand that functions in python have below three properties.
- Functions are objects. Which means we can assign the function to a variable.
- A function can be defined inside another function
- A function can return another function
#python