Python Bug-Smasher (Developer)
From Wikiprompt, the free prompt encyclopedia
Python Bug-Smasher (Developer) A prompt to help developers debug failing unit tests by diagnosing the bug, rewriting the function, and providing a concise explanation.
Prompt ContentSave
🌐
I have this failing unit test for a function calculate_tax(). Here's the code and traceback (paste below). Diagnose the bug, rewrite the function, and explain in 2 sentences why the test now passes.
Sign in to see the full prompt
Continue with:
By logging in, you agree to our Terms of Use and Privacy Policy
Usage
This prompt is designed for use with coding. Copy the prompt content above and paste it into your preferred AI tool.
For best results, you may customize the placeholders (indicated by square brackets or capital letters) with your specific requirements.
References
- Category: coding Prompts
- Source: https://x.com/thisdudelikesAI/status/1921159133887451633
Talk
0 comments