Computer Science, asked by anindyaadhikari13, 2 days ago

What is decorators in Python? Explain in details. Give some examples? ​

Answers

Answered by larrymenezes123
3

Answer:

a decorator is a function that takes another function and extends the behavior of the latter function without explicitly modifying it.

Answered by Anonymous
2

Answer:

Decorators are very powerful and useful tool in Python since it allows programmers to modify the behavior of function or class. Decorators allow us to wrap another function in order to extend the behavior of the wrapped function, without permanently modifying it. But before diving deep into decorators let us understand some concepts that will come in handy in learning the decorators.

Similar questions