Examveda
Examveda

What is a common use case of decorators?

A. Replacing built-in functions

B. Adding logging or authentication to functions

C. Removing error handling from functions

D. Changing the function's name

Answer: Option B

Solution(By Examveda Team)

Decorators are often used to add features like logging, authentication, or authorization to functions.

This Question Belongs to Python Program >> Decorators In Depth

Join The Discussion

Related Questions on Decorators in Depth