
- Prompt at a glance
- Category
- Text & chat
- Works with
- Claude · ChatGPT · Gemini
- Length
- 64 words
- Fields to fill
- None. Paste and go.
- Last updated
Learn a programming concept with analogies
This prompt teaches one concept, such as async/await or database indexes, in four steps: a real-life analogy, a definition, a small code example and a common mistake. It then gives you two exercises.
Act as a patient programming teacher. Concept: [e.g. async/await, closures, database indexes, Docker] My level: [e.g. I know basic Python loops and functions] Explain it in four steps: a real-life analogy, a plain definition, a tiny code example with each line explained, and a common mistake beginners make with it. Then give me two small exercises, and wait for my answers before showing solutions.
Say what you already know. The explanation fits much better when it builds on something familiar.
From copy to answer in four steps
- 1
Open Claude and start a new chat.
- 2
Paste the prompt.
- 3
Replace each [BRACKETED] field with your real details and paste in your own text where asked.
- 4
Reply with follow-ups such as "make it shorter" or "make it sound more like me".
About this prompt
Which AI tools work with this prompt?
It is written for Claude, ChatGPT and Gemini. Paste it into your preferred tool and adjust the wording if the result is off.
Should I paste private information into the prompt?
Only what the task needs. Remove names, contact details and other sensitive data before pasting a resume or document into any AI tool.