What is Decorator in python ?
Decorator in python
- A decorator in Python is a function that takes another function as an argument, while not changing the function being used as an argument.
- Decorators dynamically alter the functionality of a function without using sub classes.
- This is useful when you want to extend the functionality of functions and don’t want to modify them.
