Examveda

How can you remove a decorator from a function in Python?

A. By deleting the decorator's code

B. By using the @remove_decorator syntax

C. By using the @decorator syntax again

D. By calling the remove_decorator() function

Answer: Option C

Solution (By Examveda Team)

You can remove a decorator by removing the @decorator syntax from the function.

This Question Belongs to Python Program >> Decorators In Depth

Join The Discussion

Related Questions on Decorators in Depth