Loading

Quipoin Menu

Learn • Practice • Grow

python / Decorators
exercise
1/5
Exercise 1Python
Question

Write a decorator `timer` that prints the execution time of a function. Apply it to a function that sleeps for 2 seconds.