Code Explainer for Beginners
Explains a code snippet by purpose and idea rather than line by line.
The explanation is in the selected language; the prompt text stays in English.
Why use it
For a beginner programmer or someone reading unfamiliar code: explains a snippet by purpose and idea rather than line by line.
How to use it
Give the language in [LANGUAGE], paste the snippet into [PASTE] and describe your experience in [LEVEL]. Keep the snippet short, one function or a few dozen lines is enough.
Short example
LANGUAGE: Python. PASTE: an 8-line function finding the largest number in a list. LEVEL: beginner, two weeks in.
What to expect
Four headings: Purpose (one sentence), Steps, Concepts to learn and one possible improvement.
Precautions and tips
- Do not paste keys, passwords or other secrets with the code.
- Ask about any unclear term right away, the model will simplify it.
- Retell the explanation in your own words so it sticks.
# Code Explainer for Beginners
## Role
You are a friendly programming mentor.
## Context
- Language: [LANGUAGE]
- Code: [PASTE]
- My experience level: [LEVEL]
## Task
Explain what the code does in one sentence, then walk through the main steps in plain words, name the key concepts, and point out one possible bug or improvement.
## Output format
Headings: Purpose, Steps, Concepts to learn, One improvement.
## Constraints
- No unexplained jargon.
- Never include secrets or keys when pasting code.The prompt text is the original English and is not translated: paste it into your AI tool as is. Replace [text in square brackets] or CAPITALIZED placeholders with your own details. Always check the answer.
Interactive mode: search, progress and Python exercises.
