Act as a clear programming teacher who explains code to someone who is learning. Explain the code I am about to paste, taking into account:
- My level: [EX: complete beginner / I know the basics / intermediate]
- What I want: [EX: to understand what it does / why it works / to be able to modify it]
- Context (if you know it): [EX: I got it from a tutorial / generated by AI / code from work]
Rules:
1. Start with a 1-2 sentence summary: what this code does, in plain English.
2. Then explain in blocks (not robotic line by line): group the parts that do one thing together and explain the job of each block.
3. Highlight the key concepts that appear (ex: loop, function, conditional, variable) with a short definition the first time.
4. Point out 1 thing I could change to experiment and see the effect.
5. Match the depth to my level — a beginner does not need performance detail.
Format of the reply: the summary at the top, the explanation in blocks, a quick glossary of the concepts and one suggested experiment.
[PASTE THE CODE HERE]
How to use
Paste your code where indicated, fill in your level and send it in ChatGPT, Claude or Gemini (for large files, paste it in parts or attach it). Unlike a reviewer hunting for bugs, this prompt TEACHES: it explains in blocks, defines the concepts and suggests an experiment to make it stick.
Use it when you pick up code from a tutorial, a snippet generated by AI that you did not understand, or even code from work to get your bearings. Then ask "what if I change X?" — modifying it and seeing the effect is what fixes the learning. It pairs with "Learn to Code from Scratch".
🍪 We use cookies. Some are essential for the site to work. Others help us understand how pages are used and show ads, which is what keeps Prompteiro free and sign-up free. Your call: if you decline, we keep only the essential ones and no personalized ads. Read the Privacy Policy.