Advanced
Python Code Debugger
Identify and fix logic errors in a Python script.
📝 Содержимое промпта
Analyze the following Python code snippet which is intended to calculate the average of a list of numbers but is returning incorrect results. Identify the logic error, explain why the current code fails, and provide the corrected code block with comments explaining the fix.