Skip to main content
⚑
← Coursesβ€ΊCreative ChallengesModule 2 Β· πŸ€– AI Pair-Reversed (5)β€ΊπŸ† Capstone: Claude's retry decorator swallows everythingmission20 / 100
πŸ’¬ DiscussπŸ§ͺ Playground+200 XP
Task
Fix `retry` so: 1. `ConnectionError` triggers up to 3 attempts. 2. `ValueError` propagates immediately (no retry). The output must be exactly: ``` attempt 1 attempt 2 attempt 3 caught: still failing attempt 1 caught: bad input ```

Keep going

✏️ Write your code here
🐍
Loading Python...
First visit only β€” ~5-10s. Stays cached afterward.
πŸ“Š Result
Press Run to see result...
πŸ“£ Help someone learn PythonShare this lesson with a friend β€” the first 15 are free, no signup.Tweet

πŸ’¬ Discussion

Be the first to ask a question or share a tip.
Sign in to join the discussion. Reading is free.
Loading discussion…