8. Python Bug-Smasher (Developer)
— God of Prompt (@godofprompt) 1 mai 2025
Prompt
“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.”
What to expect
• Pinpointed error… pic.twitter.com/4oisd3UL6s
8. Python Bug-Smasher (Developer) Prompt “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.” What to expect • Pinpointed error