unnested
Explore
Pro
Sign in
Learn Python
Decorators
12 questions
Output
Easy
Decorator wrapper with *args
Multiple choice
Easy
What does the @ syntax do?
Output
Easy
Function name after decoration
Output
Medium
functools.wraps preserves metadata
Output
Sign in
to save your progress.
Medium
Decorator that takes arguments
Output
Medium
Stacked decorators apply bottom-up
Output
Medium
Decorator capturing state via closure
Vocabulary
Medium
What @property does
Output
Hard
Decorator with arguments drops return value
Output
Hard
Stacked decorators and __name__ without wraps
Multiple choice
Hard
Class-based decorator mechanics
Vocabulary
Hard
What functools.wraps does