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:

Priygop - Leading Professional Development Platform | Expert Courses & Interview Prep