Home › Prompts › Mistral Le Chat › Python code review with fixes
Python code review with fixes
Review Python code for bugs, readability and security, with concrete fixes.
Mistral Le ChatCodingRuleStack original
Written for Mistral Le Chat · Updated 2026-10-17
Note: Review and test before use. Provided as is, without warranty. See Terms.
Prompt
DownloadReview this Python [version] code:
```python
[paste code]
```
Find: bugs, security issues, readability problems and missing tests. For each: severity, line, why it matters, and a fixed snippet. End with the 3 most important changes.Replace everything in [square brackets] with your own details.
Settings & parameters
- Le Chat; a coding-focused model works well if you can pick one
Variations
- Review for performance only.
- Add type hints and docstrings.
Tips
- Severity ranking helps you fix what matters first.
- Do not paste secrets.