🏠 Accueil
Benchmarks
📊 Tous les Benchmarks 🦖 Dinosaure v1 🦖 Dinosaure v2 ✅ To-Do List Apps 🎨 Pages Libres 🎯 FSACB - Showcase 🌍 Traduction
Modèles
🏆 Top 10 Modèles 🆓 Modèles Gratuits 📋 Tous les Modèles ⚙️ Modes Kilo Code
Ressources
💬 Prompts IA 📖 Glossaire IA 🔗 Liens Utiles
Intermediate

Debug Python Infinite Loop

#python #debugging #logic

Identify and fix a logical error causing an infinite loop in a Python code snippet.

Review the provided Python code snippet that is intended to count down from a given number to zero but is currently stuck in an infinite loop. Identify the logical error in the loop condition or update statement. Rewrite the corrected code block and add a comment explaining the fix.