Examveda
Examveda

How is a decorator defined in Python?

A. Using the @decorator syntax

B. By calling the decorator() function

C. Using the def keyword

D. Using the modify() keyword

Answer: Option A

Solution(By Examveda Team)

Decorators are defined using the @decorator_name syntax above a function definition.

This Question Belongs to Python Program >> Decorators In Depth

Join The Discussion

Related Questions on Decorators in Depth