🏠 Accueil
基準測試
📊 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 📖 人工智能詞彙表 🔗 Liens Utiles
Medium

Debug and Explain Logic Error

#coding #debugging #technical

Analyze a code snippet to find a logic error and explain the fix.

Review the following code snippet that is intended to calculate the average of a list of numbers but is returning incorrect results. Identify the logic error, explain why it causes the wrong output, and rewrite the function with the correction.