Prompt Library

← All prompts

Coding Basics prompts

4 prompts in this category.

Writing Work & Email Small Business Learning Planning & Life Coding Basics Coding Projects

Explain This Code

Coding Basics

Understand code you didn't write.

Show full 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.

Error Message Decoder

Coding Basics

Fix an error without guessing.

Show full prompt
I got this error: [paste full error].
Running: [what you ran], on [OS / tool versions]. Relevant code: [paste].
Explain what the error means in plain English, list the 3 most likely causes ranked, and give the exact fix for the most likely one. Then tell me how to confirm it worked.

Spreadsheet Formula Helper

Coding Basics

Get the right Excel/Google Sheets formula.

Show full prompt
In [Google Sheets/Excel], my data is: column A = [..], B = [..], C = [..], rows 2 to [n].
I want to [goal, e.g. sum C where A is 'Paid' and B is in March].
Give the formula, explain each part, and show the result on these 3 sample rows: [paste].

Build a Tiny Script

Coding Basics

Automate a small repetitive task.

Show full prompt
Write a beginner-friendly [Python] script that [task, e.g. renames all photos in a folder to date_taken.jpg].
I'm on [OS]. Include: install steps, comments on every block, a dry-run mode that only prints what it would do, and how to run it.
Keep it under [60] lines with no unnecessary libraries.