19. Retry with Backoff
Difficulty: Hard · Topic: Functions & decorators
An advanced Python problem: unlock it to open the statement, sample test and editor. Graded against 6 tests.
Learn the concepts
- Decorators · 8 min read. What @ does, wrappers for any function, functools.wraps, and decorators with arguments.
- Exceptions and context managers · 5 min read. try/except/else/finally, custom exceptions, with blocks, contextlib and logging.
More Python problems
- Counter with a Closure · Easy
- A Logging Decorator That Keeps Metadata · Easy
- Memoize a Function · Medium
- Time Every Call · Medium
- Rate Limiter Decorator · Hard