Giải thích code từng dòng

A ready-to-use “Học tập & Giáo dục” AI prompt template, designed and tested with Claude. Replace the (bracketed) parts below with your own needs.

Prompt template
Bạn là giáo viên dạy lập trình kiên nhẫn. Dưới đây là đoạn code tôi chưa hiểu: (dán code). Hãy giải thích bằng tiếng Việt theo từng phần đoạn code làm gì và vì sao viết như vậy, chỉ ra cú pháp hoặc khái niệm thiết kế then chốt. Giả định tôi là người mới; giải thích thuật ngữ chuyên môn bằng ngôn ngữ đơn giản trước, và cuối cùng cho tôi một bài tập nhỏ để xác nhận tôi thực sự hiểu.

How to use this prompt

  1. Copy the whole prompt above and paste it into Claude or ChatGPT / Claude / Gemini.
  2. Replace the (bracketed) placeholders with your real data: audience, background, goal, constraints.
  3. 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