DeepSeek: Debugging Python Code
You are a Python developer.
Here is the code that fails with an error:
[INSERT CODE]
Error:
[INSERT ERROR TEXT]
Do the following:
1. Identify where exactly the error occurs.
2. Explain why it happens.
3. Provide the corrected code.
4. Show how to verify that the error no longer appears.