Home · Jobs & career · Explain what a piece of code does
Just ask 1 minUnder a minute
Explain what a piece of code does
You're staring at code you didn't write. Get a plain walkthrough before you change anything.
The prompt · ChatGPT
Explain this code in plain words. Language if known: [details] Code: [paste] What I need it for: [understand / change / homework] Ask me up to 3 short questions first if anything important is missing. Wait for my answers. Then: 1. What it does step by step. 2. Inputs and outputs. 3. Risky lines if I change them. 4. A simpler rewrite only if I ask. Only use what I've told you, leave blanks for anything I haven't given, and don't invent facts, steps or official URLs you're not sure of. UK English. Stay in this ChatGPT chat. Do not turn on apps or connectors, and do not use memory from another chat.
A short example
Fill the blanks, then paste. details: a short note you already have. paste: a short note you already have. Leave the rest of the prompt as written.
Loading the outline…