Context manager timer
Implement a Timer context manager that records elapsed seconds.
Infinite counter generator
Create an infinite counter starting from `start`, stepping by `step`.
Retry decorator
Implement @retry(times=3) that retries a function on exception.
2D Vector dataclass
Implement a Vector2D dataclass with +, -, scalar *, dot product, and magnitude.
Data pipeline
Implement a Pipeline class supporting pipe chaining with the | operator.
Validated descriptor
Implement a TypedField descriptor that raises TypeError if the value is not of the expected type.
Showing 6 challenges · filtered by category