Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Python
/
Decorators
For @retry_on(ConnectionError, attempts=3), what must retry_on(...) return?
from Decorators
Python 3.14
intermediate
1 min
For @retry_on(ConnectionError, attempts=3), what must retry_on(...) return?
A decorator that accepts the newly defined function
The result of calling the business function three times
A tuple containing the function and its configuration
A context manager that Python enters during every call
Check
Ask AI about this kata
Report an error
previous kata
Why should a transparent decorator for async def usually return an async def wrapper?
Quiz
next kata
What does this program print?
Predict the output
A new version is available
Reload