Quiz · Functions as values · lesson 8 of 10Quiz — what @dec doesWhat is a decorator, and what does @dec above a function stand for?[A]A decorator is a function that takes a function and returns another one, often a wrapper, adding behavior without editing the original. @dec above def f is short for f = dec(f), so the name f now refers to whatever dec returned.[B]A decorator is a function that runs the decorated function right away and saves its result. @dec above def f runs f once when it is defined and stores the return value, so later calls only give back that saved value instead of running the body.[C]A decorator watches a function but does not replace it. @dec above def f is short for adding dec to a hidden list that Python checks before each call, but the name f always stays attached to the body you originally wrote.[D]A decorator is a label that marks a function as special for the interpreter. @dec above def f changes no names: it calls dec(f) only for what dec prints or records, and the name f keeps pointing at the original function the whole time.Subscribe to take the courseThe course is free. Sign in with Telegram and subscribe to the channel to open every lesson.Continue with TelegramSign in another way← BackDecoratorsNext →Exercise: apply n times