Examveda

Which of the following is a correct way to define a decorator function in Python?

A. def my_decorator(func):
def wrapper():

B. def wrapper():
def my_decorator(func):

C. def decorator():
def func_wrapper():

D. def func_wrapper():
def decorator(func):

Answer: Option C


This Question Belongs to Python Program >> Formatting And Decorators

Join The Discussion

Related Questions on Formatting and Decorators