Decorators in Python?
- Nazeeruddin

- Jan 10, 2023
- 1 min read
Updated: Feb 10, 2023
Decorators are used to modify the behavior of function or class. In Decorators, functions are taken as the argument into another function and then called
inside the wrapper function.
output:
</h1>
Hello World
</h1>
Where you implemented decorator in your project code.?
decorators are easy to add log statements, to any function call.
output:
sum function call started
sum is 30
sum function call ended 



Comments