Learning With AI

How to use an AI assistant as a tutor that gives hints, checks your attempts and quizzes you, without letting it do the thinking you need to practise.

12 minLesson 4 of 7
On this page
  1. Why the way you ask matters
  2. Setting the assistant up as a tutor
  3. Techniques for learning with an assistant
  4. Pitfalls
  5. What to do differently in practice
  6. What to practise next

Learning with an AI assistant means using it as a tutor for a topic you are studying, such as a programming concept, instead of using it to produce answers. It works well because the assistant is available at any hour, never loses patience and can explain the same idea in many ways. It fails when it does the thinking for you, because you only learn what you work out and recall yourself.

Suppose two people learn recursion for a week. One pastes each exercise into the assistant and reads the solution. The other attempts each exercise first and asks for help only when stuck. On a paper test at the end of the week, the first person cannot write the solutions, because reading a clear explanation felt like understanding but never gave any practice at producing one.

Why the way you ask matters

Following someone else's reasoning feels productive, but it is a different skill from building the reasoning yourself. Building it means getting something wrong, noticing the error and fixing it, and that is the effort that makes the knowledge last. An assistant can remove all of that effort or can focus it, depending on the request. The figure below shows five common requests, ordered by how much of the thinking stays with you.

What you ask for How much of the thinking you do Write it for me Explain the answer Give me a hint Check my attempt Quiz me, no hints
The same assistant asked in five ways. The lower the request, the more of the thinking you do yourself.

A worked answer is not always wrong. It helps after you have tried the problem yourself, and it is enough for a topic you only need to recognise rather than do. It becomes a problem when you ask for it on something you need to be able to do alone.

Setting the assistant up as a tutor

By default an assistant gives a complete answer, so you have to tell it at the start of the session that you want a tutor. The instruction should state your level, how much help you want and what it should not do. The example below shows such a setup, followed by a stuck moment.

Tutor setup and a stuck momentIllustrative example. Real replies vary.
System prompt
You are a programming tutor.
You
I'm learning recursion in Python. I know loops and lists well. Act as a tutor: when I'm stuck, give me one hint at a time, as a question if you can. Don't show me corrected code unless I ask for it. After I fix something, ask me to explain why the fix works. Here is my attempt at summing a list. It works on [4, 2, 5] but my test with an empty list crashes: def total(nums): if len(nums) == 1: return nums[0] return nums[0] + total(nums[1:])
Model
The recursive step is right, so the crash must come from somewhere else. Trace total([]) by hand. Which line runs first, and what is nums[0] when the list is empty?
You
len is 0, not 1, so it skips the if and does nums[0]. There is no item 0, so that's the error.
Model
Yes, that is the cause. Now, what should the total of an empty list be? And once you know that, do you still need the len(nums) == 1 case?

The tutor never wrote the fix. The learner found the cause by tracing the code, and the last question points toward a better base case: an empty list sums to 0, which makes the one-item case unnecessary. The learner is likely to remember this because they worked it out.

Techniques for learning with an assistant

Asking for hints

A hint is the smallest piece of help that gets you moving again. You can ask for one hint at a time, or ask the assistant to answer with a question, as in the example above. Use hints when you have a specific problem and are close to solving it. If you ask for a hint and still cannot move after two or three, ask for a worked example of a similar problem, not of yours, and then return to your own. Hints fail when you ask for them before you have tried anything, because the assistant then has to guess where you are stuck and tends to explain the whole topic.

Getting your attempt checked

Paste your own attempt, even a wrong one, and say what you expected to happen and what happened instead. The assistant can then point at the specific line or misunderstanding, which is far more useful than a general explanation. Ask it to name the problem without rewriting the code. This technique fails when the attempt is so incomplete that the assistant has nothing to check, so write at least a rough version first.

Explaining it back

Write the idea in your own words, without looking at the explanation, and ask the assistant what is wrong or missing in it. Gaps that you cannot put into words are gaps in your understanding, and this is the quickest way to find them. Ask it to be strict, because assistants tend to be encouraging and may accept a vague explanation unless you say otherwise.

Being quizzed later

Ask for three questions or small problems on a topic you studied a day or more ago, and tell the assistant not to reveal answers until you have tried. Recalling something after a gap is one of the most reliable ways to make it last, and it shows which parts you have already forgotten. Quizzing right after studying tests only your short-term memory, so it is much less useful.

Asking for a different explanation

When an explanation does not make sense, do not ask for the same one again. Ask for a small example with concrete numbers, a comparison to something you already know, or an explanation aimed at a specific background such as "I know loops but not recursion". Then go back to the exercise and try it again, since the new explanation only helps if you use it.

Pitfalls

The assistant sometimes states wrong facts

An assistant sometimes invents a fact and states it with the same confidence as everything else (see Why Models Hallucinate). When you are learning you do not yet know enough to notice. Three habits reduce the risk. Prefer well-established topics, because the assistant is more reliable on loops than on a niche library. Keep a trusted source open, such as official documentation or a course, and check anything that surprises you against it. And run the code whenever a claim can be tested, as described in Verifying AI Output.

The assistant agrees with you too easily

Assistants tend to be agreeable. If you say "I think the answer is X, right?", you may get a yes even when X is wrong. Ask neutral questions instead, such as "What is the answer and how would you check it?", or ask the assistant to argue against your answer before it responds to it.

Keeping code you could not write again

If you could not rewrite the assistant's fix from a blank page tomorrow, you have a working file but no new skill. Delete the fix and write it again without looking. The places where you get stuck are what to ask about next.

Asking for the whole answer when a nudge would do

Once you have read a complete solution, you cannot go back to working it out, because you know where it ends. Ask for the smallest help that gets you moving, such as a hint, a question, or a yes or no on whether your approach is on the right track. If you have already seen the solution, ask for a different problem of the same kind.

What to do differently in practice

Do the first attempt and the final explanation yourself, and use the assistant for what happens in between: hints, checks, examples and questions. Begin each session by stating your level and the kind of help you want, as in the tutor example, so that you do not have to repeat it with every message. End each session by writing a short summary in your own words and having it checked, then ask for a quiz on the topic a few days later.

Try it: Turn a question into a tutoring session

This request will produce a lecture that you half-read and forget. Rewrite it so the assistant makes you think. Include your level, the kind of help you want and how you will know that you understood.

Show a sample answer
Rewritten requestIllustrative example. Real replies vary.
You
I want to learn dynamic programming. I'm comfortable with recursion and Big-O, and I've never seen DP before. Teach me by starting with one small problem I can solve by hand, not with definitions. Let me try it first. When I'm stuck, give one hint at a time. Only explain the general idea after I've solved the example. At the end, give me two new problems to solve on my own, and check my answers without showing me yours first.

This version works for three reasons. Your level tells the assistant where to start. Asking for the problem first and the idea afterwards means the explanation lands on something you have just struggled with. The final two problems are the real test, because if you cannot solve them alone, you have not learned the topic yet. The site's DP introduction is a trusted source to check the assistant against.

Quick check

You are stuck on a practice problem. Which request keeps the most learning with you?

After a clear explanation of binary search, you feel you understand it. What is the best check?

Why is an AI tutor's mistake harder to catch when you are learning?

What to practise next

Run a tutor session on a topic you are studying, with one attempt, hints only and an explanation back. Then continue with Privacy and Security, which covers what is safe to paste into an assistant.