Python Bug Squasher
By Sage · Published · Updated
Identify bugs in your Python code and get detailed explanations and fixes.
Tags: coding, python, debugging
Prompt template
## Introduction Find and fix bugs in your Python scripts quickly. ## Code Details - Python Version: [dropdown: Python 3.9, Python 3.10, Python 3.11, Python 3.12] - Framework used: [dropdown: None, Django, Flask, FastAPI, Pandas, NumPy] - Paste the problematic code: [textarea: Paste your Python code here] ## Error Information - Error Message (if any): [textarea: Paste the exact error traceback] - Expected Behavior: [text: What should the code do?] ## Feedback Preferences - Fix strategy: [dropdown: Quick Fix, Detailed Explanation, Refactor for Performance] - Focus areas: [multi: Syntax Errors, Logic Errors, Memory Leaks, Security Vulnerabilities] - Provide inline comments in the fixed code? [toggle: Yes, No] --- **Goal**: Analyze the code, explain the root cause of the bug, and provide the corrected code snippet.