Explain code line by line
ChatGPTPlain English, one line at a time.
Explain this code line by line as if I'm new to programming, using plain English and a real-world analogy where it helps. Code: [paste].
Explain code, fix errors, and learn the basics, no experience needed.
40 prompts
Plain English, one line at a time.
Explain this code line by line as if I'm new to programming, using plain English and a real-world analogy where it helps. Code: [paste].
The simplest possible version.
Explain what this code does and why, like you're explaining to a smart 14-year-old. Then tell me the one part most beginners find confusing. Code: [paste].
Inputs, outputs, and where to use it.
Here's a function I didn't write: [paste]. Tell me in plain English what it does, what goes in, what comes out, and where I'd use it.
Watch the values change.
Walk me through what happens when this code runs, step by step, showing how the values change along the way. Code: [paste].
Define the words you don't know.
This code or error uses terms I don't know: [paste]. List the unfamiliar words and explain each one in one simple sentence.
One idea, one example, one analogy.
I'm a complete beginner learning [language]. Explain [concept, e.g. variables, loops, functions] in plain English, with one short example I can run and a real-world analogy.
A guided lesson that quizzes you.
Switch to Study mode. Teach me [concept] in [language] step by step: explain it in plain terms, show one small example, then quiz me with one question before we move on.
Tell A and B apart.
I keep mixing up [thing A] and [thing B] in [language]. Explain the difference in plain terms, when to use each, and give one tiny example of both.
Five questions, one at a time.
Quiz me on [topic] in [language] with five short beginner questions, one at a time. Wait for my answer, tell me if I'm right, and explain anything I get wrong.
A day-by-day path that fits your time.
I'm a beginner with [time per day] to learn [language]. Give me a two-week, day-by-day plan that builds from the basics, with a tiny practice task each day.
What it means and how to fix it.
I got this error and I don't understand it: [paste the full error]. Explain in plain English what it means, the most likely cause, and how to fix it. My code: [paste].
Expected versus actual.
This code runs but doesn't do what I expect. I wanted [expected], but it does [actual]. Help me find why, and explain the bug so I understand it. Code: [paste].
A nudge, not the answer.
There's a bug in this code: [paste]. Don't fix it for me yet. Give me a hint about where to look and what kind of mistake it is, so I can try to find it myself.
Find the line that matters.
I don't know how to read this error trace: [paste]. Show me how to find the line that matters and what it's telling me, so I can debug it next time.
Catch them early.
I'm learning [language] and keep hitting errors. List the five most common beginner mistakes in [language] and how to spot each one early.
Code you can read and learn from.
Write a short [language] script that [does one small thing, e.g. counts words in a sentence]. Add a comment on every line explaining what it does, so I can read it and learn.
Something that works, to build on.
I want to build [small thing]. Give me the simplest possible version in [language] that works, nothing fancy, so I can run it and then build on it.
Structure now, logic by you.
Give me a beginner-friendly [language] template for [task], with the structure in place and clear 'fill this in' comments where I write the logic myself.
Simple now, better next.
Show me two ways to [do a small task] in [language]: the simplest one for a beginner and a slightly better one, and explain when I'd use each.
Plan first, code later.
I want to write a program that [idea]. Before any code, break it into small plain-English steps I could follow, so I understand the plan first.
Small enough to finish.
I've learned the basics of [language]. Suggest three small projects I could finish in a weekend that would teach me something new, with what each one practises.
One small step at a time.
I want to build [project, e.g. a to-do list app] in [language] as a beginner. Break it into small steps I can do one at a time, starting with the simplest working version.
One new concept at a time.
I just built [thing] in [language]. Suggest one slightly harder next project that reuses what I learned and adds one new concept, and name the concept.
Grow it without a rewrite.
Here's my small project so far: [paste or describe]. Suggest one small feature I could add next, and the steps to add it, without rewriting what I have.
A realistic first version.
Here's my plan for a beginner project: [describe]. Is this realistic for my level, where might I get stuck, and what should I cut to make a first version I can actually finish?
Beginner-level feedback only.
I wrote this as a beginner: [paste]. Does it work, and is it okay? Point out anything confusing or risky, but keep the advice at a beginner level, not expert.
Cleaner, and explained.
Here's some code I wrote: [paste]. Show me a simpler, cleaner way to write it, and explain what you changed and why, so I learn from it.
Notes for your future self.
Add clear comments to this code explaining what each part does, written for a beginner like me, without changing how it works. Code: [paste].
Better names, clearer shape.
Rewrite this code to be easier to read (better names, clearer structure), keep the behaviour the same, and tell me which habits I should keep doing. Code: [paste].
Understand why it worked.
I fixed this bug by [change], but I'm not sure why it worked: [paste before and after]. Explain what was actually wrong and why the fix works.
Match it to your goal.
I'm a total beginner who wants to [goal, e.g. build websites, analyse data]. Which programming language should I start with, and why, in plain terms?
Concepts in the right order.
Give me a beginner roadmap for learning [language]: the concepts to learn in order, roughly how long each takes, and a tiny project to practise each stage.
From nothing to your first run.
I'm on [Windows or Mac] and new to coding. Walk me through installing [language] and running my first program, step by step, assuming I know nothing.
Editor, terminal, and the rest.
As a beginner in [language], explain what an editor, a terminal, and a [package manager or interpreter] are, in plain English, and which ones I actually need to start.
See the same idea twice.
I understand this code in [language A]: [paste]. Show me the same thing in [language B] side by side, and explain the main differences a beginner should notice.
Questions and hints, not answers.
I'm stuck on [problem] in [language] and feeling lost. Ask me what I've tried, then guide me toward the answer with questions and hints rather than just giving me the code.
Find the simpler path.
Here's how I'm trying to solve [problem]: [paste or describe]. Am I overcomplicating it? Show me the simpler approach a beginner would use, if there is one.
A fresh angle when one didn't land.
I still don't get [concept] even after reading about it. Explain it a completely different way, with a new analogy and a tiny example, as if the first explanation never happened.
Say it back, get corrected.
I think I understand [concept]. I'll explain it in my own words: [your explanation]. Tell me what I got right, what's off, and one thing I'm missing.
Use it as a tutor, not a crutch.
I've been asking you to write a lot of my code. Suggest how I can use you to learn instead of lean on you, with three habits that would help me actually understand what I'm writing.
One email a week on AI tools and smart-home tech. No jargon, no hype.