Medium
Debug Python Code
Identify and fix errors in a provided code snippet.
📝 プロンプトの内容
Analyze the following Python code snippet, identify the logical error, and provide the corrected code along with an explanation of the fix.