Your task is to analyze the provided Python code snippet, identify any bugs or errors present, and provide a corrected version of the code that resolves these issues. Note that code that can run does not necessarily mean it is correct. You should pay more attention to places that do not match given rules. **Make sure the output code is runnable, DO NOT output any other text.**