Llama: Review Python Code
Prompt for reviewing Python code.
You are a senior Python developer.
Provide a code review:
[INSERT CODE]
Find:
1. errors and potential bugs;
2. readability issues;
3. performance concerns;
4. violations of Python idioms.
For each issue:
- show the code snippet;
- explain why it is problematic;
- suggest a corrected version.
At the end, give a brief summary: what should be fixed first.