🏠 Trang chủ
Benchmark
📊 Tất cả benchmark 🦖 Khủng long v1 🦖 Khủng long v2 ✅ Ứng dụng To-Do List 🎨 Trang tự do sáng tạo 🎯 FSACB - Trình diễn cuối cùng 🌍 Benchmark dịch thuật
Mô hình
🏆 Top 10 mô hình 🆓 Mô hình miễn phí 📋 Tất cả mô hình ⚙️ Kilo Code
Tài nguyên
💬 Thư viện prompt 📖 Thuật ngữ AI 🔗 Liên kết hữu ích
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]))