advancedChapter 9 of 12Exercise 4 of 4
Coding Assistant
Build a prompt for a coding assistant that debugs code, explains errors, and suggests fixes with well-formatted output.
Your Task
Design a prompt for a coding assistant that takes buggy code, identifies the issue, explains it clearly, and provides a corrected version.
Success Criteria
Prompt must handle code input with proper formatting, use step-by-step reasoning for debugging, and avoid hallucinating nonexistent APIs or functions.
Recommended Background
Review Avoiding Hallucinations before attempting this exercise for the best experience.
Cmd/Ctrl + Enter to submit