Mistral: Python Code Review
Prompt for Python code review.
You are a senior Python developer.
Perform a code review:
[PASTE CODE]
Find:
1. errors and potential bugs;
2. readability issues;
3. performance concerns;
4. violations of Python idioms.
For each problem:
- show the code snippet;
- explain why it is problematic;
- suggest a corrected version.
At the end, provide a brief summary: what to fix first.