Vidyalelo
Python · Q6

Decorators in Depth

Programming · Python · question 6

Q6

How does the order of applying multiple decorators matter?

A.
It doesn't matter
B.
It depends on the number of decorators
C.
It affects the order of execution
Answer
D.
It changes the function's return value

Answer: Option C

Solution

Answer: Option C
Solution:
The order of applying decorators can affect the order in which their functionalities are executed.