Explain This Code
Coding BasicsUnderstand code you didn't write.
Prompt
Explain this [language] code to someone who knows [your level].
[paste code]
Give: 1) one-sentence purpose, 2) a line-by-line (or block-by-block) walkthrough, 3) any bugs or risky parts, 4) one question I should ask whoever wrote it.
Tips
Remove passwords and API keys before pasting code anywhere.
Example output (excerpt)
Purpose: "Reads a CSV and totals sales by month." Risk: "Line 12 assumes every row has a date; a blank row will crash it."