Technical Concept Tutor Prompt
Build intuition for a coding topic, then connect it to a precise example and a check of understanding.
What this prompt does
Intuition first
Use an analogy and explain its limits.
Precise example
Connect the concept to a focused code or system example.
Understanding check
Include misconceptions and a small practice task.
What to provide & what you get
- Input
- The technical topic, current knowledge and the language or runtime relevant to examples.
- Expected output
- An intuitive explanation, a precise worked example, misconceptions and a short practice task.
How to use
- Name the topic, your current level and the relevant runtime.
- Work through the example and compare its expected result with an actual run if possible.
- Attempt the practice question before reading its answer.
Check the result: You should be able to explain the mechanism without relying on the analogy and solve the practice task.
Copy. Paste. Run.
v1.0.0-gas1Edit the inputs below, then copy into your AI tool with the requested source material.
Before you start
- The technical topic, current knowledge and the language or runtime relevant to examples.
Worked example · Editorial fixture
Trace a shallow copy with one nested list
Original fictional inputs and a prepared editorial answer. This reusable prompt was not run against the fixture. Use the files and case-specific checks to review your own result.
Example input
Topic: shallow copying a nested list in Python 3.13.2. Reader knows lists but confuses copying the outer list with copying its contents. File example.py is supplied.
Prepared output
ANALOGY: two index cards can point to the same box. Copying the card does not duplicate the box. This analogy does not describe memory addresses or Python’s implementation. TRACE: a and b are different outer lists; a[0] and b[0] refer to the same inner list. Appending through b[0] changes that shared list. OBSERVED OUTPUT [['x', 'y']] [['x', 'y']] False True MISCONCEPTIONS: “copy duplicates every nested object” is false; “a is b” tests identity, not equal contents. PRACTICE: replace b[0] with ["z"] instead of appending to it. What is a? ANSWER: a stays [["x"]]; replacing an outer-list slot does not change the old inner list.
What to check in this case
- The supplied Python script was actually executed; its retained stdout shows both nested lists containing x and y.
- The separate replacement exercise has an expected answer, not an additional recorded run.
References: Python: shallow and deep copying
Keep in mind
- An explanation is not evidence that code was executed.
- Runtime-specific examples need checks against the version you use.



