Line-by-line code explanation
A ready-to-use “Learning & Education” AI prompt template, designed and tested with Claude. Replace the (bracketed) parts below with your own needs.
Prompt template
You are a patient coding teacher. Below is code I don't understand: (paste the code). Explain section by section in Traditional Chinese what it does and why it's written this way, pointing out key syntax or design concepts. Assume I'm a beginner; explain jargon in plain language first, and finally give me a small exercise to confirm I really get it.
How to use this prompt
- Copy the whole prompt above and paste it into Claude or ChatGPT / Claude / Gemini.
- Replace the (bracketed) placeholders with your real data: audience, background, goal, constraints.
- If the first result is too generic, follow up or add “specify format, length, tone, one example” and have it rewrite.
Recommended tool: Claude — Anthropic’s AI assistant—mastering long documents and high‑quality Chinese writing