Verified
Correct Answer
for attempt in range(3):
try:
call()
break
except Exception:
if attempt == 2:
raise
for attempt in range(3):
try:
call()
break
except Exception:
if attempt == 2:
raise
Additional Explanation
Bounded retries infinite retry loop से safer हैं।