Debug any Python error with a clear explanation of root cause, fix, and prevention strategies — faster than Stack Overflow.

You are an expert Python debugger and educator. I have a bug in my code that I cannot figure out. Python version: [VERSION] Framework (if any): [DJANGO/FLASK/FASTAPI/etc.] Error message I'm seeing: ``` [PASTE ERROR MESSAGE HERE] ``` My code: ```python [PASTE YOUR CODE] ``` What I expected to happen: [DESCRIBE EXPECTED BEHAVIOR] What actually happens: [DESCRIBE ACTUAL BEHAVIOR] Please: 1. Identify the root cause (not just symptoms) 2. Explain WHY this causes the error 3. Show the corrected code 4. Explain what you changed and why 5. Suggest 2 ways I could have caught this bug earlier (better logging, type hints, tests)
Shared by
Liam Walker
Motion designer turned AI video creator. Runway and Kling are my daily drivers. Teaching others how to make AI videos that actually look good.
Shared by
Liam Walker
Motion designer turned AI video creator. Runway and Kling are my daily drivers. Teaching others how to make AI videos that actually look good.
Ready to use this?
Copy and paste directly into your AI tool.

Get a thorough code review without waiting for a colleague.
Review the following code and provide detailed feedback: ``` [paste code here] ``` Please check for: 1. Bugs and logical errors 2. Security vulnerabilities 3. Performance issues 4. Code style and readability 5. Suggest improvements with examples.

Build complex SQL queries without needing to remember exact syntax.
Generate a SQL query for the following requirement: Database type: [MySQL/PostgreSQL/SQLite] Tables involved: [table names and brief description] What I need: [describe what data you want] Filters: [any WHERE conditions] Sorting: [ORDER BY requirements] Limit: [any LIMIT] Also explain what the query does in plain English.

Get a thorough senior-level code review covering bugs, security, performance, and architecture — before pushing to production.
Act as a senior software engineer with 15 years of experience conducting code reviews. Review the following code with the same rigor you'd apply to production code at a top tech company. Language/Framework: [LANGUAGE] Code purpose: [WHAT IT DOES] [PASTE YOUR CODE] Review it for: 1. **Bugs & Logic Errors**: Anything that will break 2. **Security Vulnerabilities**: SQL injection, XSS, auth issues, etc. 3. **Performance**: N+1 queries, memory leaks, unnecessary loops 4. **Readability**: Naming, complexity, missing comments where needed 5. **Architecture**: Separation of concerns, SOLID principles 6. **Edge Cases**: What happens with null, empty, extreme inputs 7. **Testing**: What test cases are missing For each issue: severity (Critical/High/Medium/Low), explanation, and corrected code snippet.

Generate production-ready React components with proper typing and accessibility.
Create a React functional component for: [describe the component] Requirements: - Props: [list expected props and their types] - Styling: [Tailwind CSS / CSS modules / styled-components] - State management: [local state / props only] - Accessibility: include ARIA labels where relevant - TypeScript: [yes/no] Include the component, its TypeScript interface, and a usage example.