Skip to main content
✏️ Code CompletionPY Python Hard+35 XP

Decorator Syntax

Complete the decorator pattern.

✏️ Fill in the blank
def timer(func):
    def wrapper(*args, **kwargs):
        start = time.time()
        result = func(*args, **kwargs)
        print(f"Took {time.time() - start}s")
        return ___
    return wrapper

✏️ Type the missing code: