🏠 Home
Prestatietests
📊 Alle benchmarks 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List applicaties 🎨 Creatieve vrije pagina's 🎯 FSACB - Ultieme showcase 🌍 Vertaalbenchmark
Modellen
🏆 Top 10 modellen 🆓 Gratis modellen 📋 Alle modellen ⚙️ Kilo Code
Bronnen
💬 Promptbibliotheek 📖 AI-woordenlijst 🔗 Nuttige links
hard

Python Code Debugger

#coding #python #debugging

Identifies bugs and logic errors in Python code snippets.

Analyze the following Python code snippet for potential bugs, logic errors, or performance issues. Provide a corrected version of the code and a brief explanation of what was wrong and how you fixed it. Code: def calculate_average(numbers): sum = 0 for n in numbers: sum += n return sum / len(numbers) print(calculate_average([10, 20, 30]))