Skip to content
SparkTime, home
AI From Zero to Productive
Lessons
1 · Understanding Modern AI
2 · Talking to AI Effectively
3 · AI for Learning
4 · AI for Work and Productivity
5 · AI for Developers
6 · AI for Career Growth
7 · Research, Verification and Responsible AI
8 · Automation and AI Agents
9 · Build Your Personal AI System
Lesson 10 of 35

Lesson 10 · AI for Learning

How to Use AI to Learn a Difficult Technical Subject

'Explain everything about this topic' produces a wall of text you will forget. This article shows a better loop: tell the AI what you already know, learn in layers, try problems yourself, ask for hints instead of answers, and test your understanding. With a full worked session.

On this page

Key takeaways

  • Learning happens when you retrieve, apply and correct, not when you read a smooth explanation. Use AI to create those moments.
  • Start by telling the assistant what you already know and what level you want. Ask for explanations in layers, from plain to formal.
  • Attempt problems first. Ask for hints in steps, and ask for the full solution only after a real attempt.
  • Use teach-back: explain the idea in your own words and ask the AI to find gaps and misconceptions.
  • AI explanations can be subtly wrong, so cross-check key facts against textbooks or official documentation, and test code by running it.

Meera wants to understand recursion for her data structures course. She types, "Explain recursion fully." The assistant produces eight tidy paragraphs, a factorial example, and a Fibonacci example. Meera reads it, nods, and feels she understands. The next day, faced with a blank editor and a problem about generating subsets, she cannot start.

Nothing went wrong with the explanation. What went wrong is that reading a clear explanation feels like learning without being learning. This article shows how to use AI to do the part that really builds understanding.

What you will learn

#
  • A learning loop that makes the AI a tutor, not an answer machine.
  • How to ask for explanations at the right level and in layers.
  • How to use hints and Socratic questions to keep your own thinking in the loop.
  • How to test your understanding and find misconceptions.
  • How to verify what the AI teaches you.

The idea in plain words

#

Researchers and teachers have long found that people remember and understand more when they try to recall or apply something and then get feedback than when they simply re-read it. Practical guides like How to Study for Exams Effectively: A Science-Backed Plan and Spaced Repetition: Remember What You Study Without Re-reading It build on this.

An AI assistant is unusually good at two things that support this: adapting explanations to you and giving instant feedback on your attempts. It is unusually bad at making you do the effortful part. That part is your job. A good workflow therefore gives the AI the parts it handles well and keeps the struggle for you.

The problem, the bad approach, the better approach

#

Problem. "I have a difficult topic to learn."

Bad approach.

Code
Explain recursion fully.

You get a generic, one-size-fits-all lecture. It assumes nothing about you, so it may be too easy or too hard. It ends with the AI having done all the thinking.

Better approach. Define five things before you start:

  1. Your current knowledge and where you get stuck.
  2. The level you want (enough to pass a course, to build projects, to teach).
  3. Constraints (time, language, the course's notation).
  4. Examples of what a good explanation looks like for you.
  5. A practice and feedback method.

The learning loop

#

Use this seven-step loop. It works for programming, maths, networking, finance and most technical subjects.

Step

What you do

What AI does

1. Diagnose

State what you know and where you are stuck

Ask you 3 to 5 questions to find your level

2. Map

Ask for the prerequisites and a path

Propose a sequence, which you check against your syllabus

3. Explain in layers

Ask for plain, then precise

Explain with a concrete example and an analogy

4. Attempt

Try a problem yourself, first

Stay quiet, or give a small hint on request

5. Get feedback

Show your attempt

Point to the first error and ask a guiding question

6. Teach back

Explain the idea in your own words

Look for gaps and misconceptions

7. Retrieve later

Return after a day or a week

Quiz you from your own notes (see article 11)

A worked session on recursion

#

Step 1: Diagnose.

Code
I am learning recursion for a data structures course in Java. I understandloops and methods. I get confused about what happens after the recursive callreturns. Before explaining anything, ask me four short questions to find outwhat I actually understand.

Example response (illustrative).

Code
1. What does a method call do to the "call stack" in your mental picture?2. Write what you think this prints: ...

Answering these shows both of you where the gap is. This step feels slow and saves time, because the explanation is then aimed at your real confusion. If the assistant's questions reveal that you also need a clearer picture of the call stack, that is the first thing to learn, not recursion.

Step 3: Explain in layers.

Code
Explain what happens when a recursive method returns, in three layers:1. One everyday analogy, and one place where the analogy breaks down.2. A plain-language walkthrough of factorial(3), as a table showing each call   and what it returns.3. The precise terms (call stack, base case, recursive case).Keep each layer under 120 words.

Asking where the analogy breaks matters. Analogies are helpful and misleading in equal measure, and a model will rarely volunteer the limits unless you ask.

Step 4: Attempt before help.

Code
Give me one problem: write a recursive method that returns the sum of thedigits of a non-negative integer. Do not show a solution. I will paste myattempt.

You write something, even if it is wrong. This is the most important step. You are retrieving and applying, not recognising.

Step 5: Feedback as hints, not answers. Paste your attempt and say:

Code
Here is my attempt: [code]. Do not rewrite it. Tell me whether it is correct. Ifnot, point to the first line where it goes wrong and ask me one questionthat helps me see why.

Step 6: Teach back.

Code
Here is my explanation of how the call stack works for recursion: [your ownwords]. Find anything that is wrong or missing, and ask me a question thattests the weakest part.

Verification throughout. When the assistant claims something technical, test it. Run the code. Add a print statement to see the real call order. Check the official language documentation or your textbook for definitions. If its explanation and your textbook disagree, trust the textbook for now and investigate, because either could be wrong, and the textbook is more likely to have been checked.

A second session: statistics

#

The loop is not specific to code. Here is a shorter version on a conceptual topic, p-values, showing where verification comes in.

Diagnose. You tell the assistant: "I think a p-value is the probability that my hypothesis is true. Ask me three questions to test that." The assistant (illustrative) asks what a p-value of 0.03 means, what is assumed when it is calculated, and what it says about the size of an effect.

Notice the misconception. Your answer to the first question exposes the mistake. A p-value is the probability of seeing data at least as extreme as yours if the null hypothesis were true. It is not the probability that the null hypothesis is true or false. A good tutor does not simply state this. It might say, "You said a p-value of 0.03 means a 97 percent chance your hypothesis is right. What would have to be true about the null hypothesis for that to hold?" That question sends you back to the definition.

Attempt. You then try: "A drug trial gives p = 0.03. Write what that does and does not tell us." You write two sentences, and the assistant points to the first place where your wording slips back into the old misconception.

Verify against a trusted source. Open your textbook or course notes and compare the definition with the one the assistant gave. If they differ, do not average them. Find out why. Perhaps the assistant simplified, perhaps you are looking at a different framework, or perhaps one of them is wrong. For definitions that exams and interviews test, your course material wins until you can explain the difference.

Why this session worked. The assistant surfaced a specific misconception, gave you a question rather than a lecture, and you checked the result against a source that was not the assistant.

When the AI and your textbook disagree

#

This will happen. A simple order of trust for learning:

  1. Your course material and official documentation, because they are what you will be examined on and they are checked by people accountable for them.
  2. A second reputable source, such as another textbook or the documentation of the tool you use.
  3. The assistant, as a source of hypotheses and explanations, not authority.

When they conflict, ask the assistant to quote or point to where its claim comes from, and then check that. Sometimes the explanation was a valid simplification. Sometimes it was wrong. Either way, you learn more than if you had trusted one source.

The hint ladder

#

Getting stuck is normal and productive up to a point. Past that point it is just frustrating. A hint ladder gives you control. Tell the assistant to answer in rungs, and to move up only when you ask:

  1. Nudge: one question to help you notice something.
  2. Hint: the key idea, without the steps.
  3. Outline: the steps in words, without code.
  4. Partial solution: code with a gap for you to fill.
  5. Full solution with explanation: only after real effort. Then re-solve it yourself from scratch tomorrow.

A prompt to set this up:

Code
Act as a tutor using a hint ladder. I will attempt each problem. If I say"hint", give the next rung only: nudge, then key idea, then outline, then apartial solution. Never give the full solution unless I type "solution". Askme to explain my reasoning before you correct me.

Here "act as a tutor" is useful because it sets the style of the interaction, which is exactly what role instructions can do. The ladder, not the role, is what protects your learning.

Learning plans

#

You can ask for a personal plan, which is useful as a first draft:

Code
I have 3 weeks and 6 hours a week to learn SQL joins well enough for a dataanalyst interview. I know SELECT and WHERE. Propose a week-by-week plan witha clear goal and one practice task each week. Mark which parts are essentialand which are optional.

Then check it. Compare against a reputable syllabus, course outline or official documentation. Plans from AI can be over-ambitious (too much in too little time) or can omit a prerequisite. Reduce it until it is honest about your hours. See also How to Learn a New Skill in 90 Days: A Practical Framework.

Using it well for different kinds of subjects

#
  • Programming: have it explain, then you write; run everything. Module 5 takes this further.
  • Maths and quantitative subjects: ask for the idea and one worked example, but do your own calculations and be wary of its arithmetic. Check final answers independently.
  • Concept-heavy subjects: ask for comparisons ("how are X and Y different, with an example where each is the right choice?") and for common misconceptions.
  • Exam preparation: ask for questions in the style of your syllabus, but beware of questions that do not match your actual exam. Use real past papers where they exist.

Common mistakes

#
  • Starting with "explain everything". Start with what you know and where you are stuck.
  • Reading without attempting. Understanding that you cannot reproduce is not yet understanding.
  • Asking for the solution too early. The struggle is the learning.
  • Accepting analogies uncritically. Ask where they fail.
  • Trusting its explanation without verification. Run code, check a textbook, compare sources.
  • Using a single long chat for months. Start new chats per topic and keep your notes yourself.
  • Confusing a smooth tutor with a good one. A good tutor makes you do things.

Exercises

#

Exercise 1

Write a diagnostic prompt

#

Pick a topic you are learning. Write a prompt that tells the assistant what you know, where you are stuck, and asks four diagnostic questions before it explains.

Exercise 2: Build your hint ladder

#

Rewrite the hint-ladder prompt for a subject of your choice, and add one rule that protects your own thinking.

Exercise 3: Spot the learning trap

#

A student writes: "Solve this problem and explain each step so I understand." The assistant does. The student copies the solution into notes and moves on. Explain why this is likely to produce shallow learning and propose a better request.

Exercise 4: Verify an explanation

#

An assistant tells you: "In Java, recursion is always slower than a loop, so you should avoid it." What would you do to check this claim, and what would you conclude about relying on such statements?

Show solutionHide solution

An example for SQL:

Code
I am learning SQL joins for data analyst interviews. I understand SELECT andWHERE but I confuse INNER JOIN and LEFT JOIN, especially when rows have nomatch. Before you explain anything, ask me four short questions that would showexactly what I do and do not understand. Wait for my answers.

The elements: topic, your level, your specific confusion, a purpose, and an instruction to find out about you first. The answers you give become the input to a tailored explanation.

Exercise 2

Show solutionHide solution

An example for statistics:

Code
Act as a tutor using a hint ladder. I will attempt each statistics problem. IfI say "hint", give the next rung only: nudge, key idea, outline, then a partialworked example with one step missing. Do not give the final answer unless I type"solution". Before correcting me, ask me to say in one sentence why I chose mymethod.

Rules that protect your own thinking: "never give the final answer unless I ask", and "ask for my reasoning first". The second is powerful: explaining your choice exposes misconceptions that a correct final answer can hide.

Exercise 3

Show solutionHide solution

The student only read a solution. They did not retrieve, struggle or apply. Understanding a worked solution is far easier than producing one, which creates an illusion of mastery that tends to collapse in an exam or interview.

A better request: "Do not solve this. Ask me what I would try first. After I attempt it, tell me where my reasoning first goes wrong. If I am stuck for more than two attempts, give me a hint, not the solution." Then, after seeing a solution, close it and re-solve the problem without looking, tomorrow.

Exercise 4

Show solutionHide solution

The claim is too broad, so test it. You could: (1) look at the official Java documentation and a reputable algorithms text on the cost of method calls and stack depth, (2) write a loop version and a recursive version of a simple function and time both on a range of input sizes, repeating the measurement, (3) check what happens for deep recursion (a stack overflow may occur, which is a real limitation).

You would probably find that recursion often has extra overhead and a depth limit, but "always slower" and "avoid it" are overgeneralisations. Some problems, such as tree traversal, are naturally recursive and clearer that way. The lesson is that sweeping statements with "always" or "never" deserve a check, and that you should test technical claims rather than store them as facts.

Where to go next

#
  • Guide · Technology

    Writing Better AI Prompts: A Practical Guide

  • Guide · Career

    The 72-Hour Company Research System

  • Course · Career

    Off-Campus Placements With AI: From Zero to Offer