🏠 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 Logic Error

#python #debugging #coding

Identify and fix a logic error in a Python script calculating a sum.

I have a Python script that is supposed to calculate the sum of numbers from 1 to 10, but it currently returns 0. Please review the following code, identify the logic error, and provide the corrected version: total = 0; for i in range(10): total = i; print(total)