Decorators Quiz
Check what you learned in the Decorators lesson. Every question explains the answer, so even a wrong answer teaches you something.
- 12 questions, picked from a pool of 47
- About 9 minutes
- Instant feedback
What this quiz covers
- Step 1: functions can be passed around (opens in a new tab)
- Step 2: functions can create functions (opens in a new tab)
- Step 3: wrapping a function (opens in a new tab)
- The @ syntax (opens in a new tab)
- Decorating functions with arguments (opens in a new tab)
- Keeping the function's name with functools.wraps (opens in a new tab)
- Decorators you'll meet (opens in a new tab)
Output