🏠 Beranda
Benchmark
📊 Semua Benchmark 🦖 Dinosaurus v1 🦖 Dinosaurus v2 ✅ Aplikasi To-Do List 🎨 Halaman Bebas Kreatif 🎯 FSACB - Showcase Utama 🌍 Benchmark Terjemahan
Model
🏆 Top 10 Model 🆓 Model Gratis 📋 Semua Model ⚙️ Kilo Code
Sumber Daya
💬 Perpustakaan Prompt 📖 Glosarium AI 🔗 Tautan Berguna
medium

Identify Bug in Code Snippet

#coding #debugging #help

Analyzes a code snippet to find logical errors or syntax issues.

Review the following Python function designed to calculate the average of a list of numbers. Identify any logical errors and explain why the current code might produce incorrect results. Suggest a corrected version. Code: def calculate_average(nums): return sum(nums) / len(nums)