Domanda di colloquio di TD

What is a decorator in Python? Give an example to time a function,