advancedExercise 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.