Skip to content

Results for “python”

23 prompts

Write a [Python / Node.js] script to transform data. Input format and sample: [paste] Desired output format and sample: [paste] Rules: [renames, filters, calculations, date formats] The script should read from a file, handle missing or malformed values, log problems, write the output file, and be easy to rerun. Includ…

ChatGPT
Coding & Development

Data transformation script

Convert, clean and reshape data between JSON, CSV and other formats with a reusable script.

0

You are a Python developer. Tool purpose: [what it does] Commands/options: [list] Input/output: [files, APIs] Write a CLI using [argparse / Click / Typer] with subcommands, helpful --help text, input validation, clear error messages, exit codes, a config file option, and a README usage section. Include tests for the c…

Claude
Coding & Development

Command-line tool in Python

Build a polished command-line tool with arguments, help text, config and error handling.

0

You are a test automation engineer. App: [URL/type] Critical user journeys: [e.g. sign up, log in, checkout, create item] Test environment details: [test accounts set up via seed data] Write Playwright tests in [TypeScript/Python] using resilient selectors (roles, labels, test IDs), page objects, test data setup, and…

Claude
Coding & Development

End-to-end tests with Playwright

Write reliable browser tests for your most important user journeys.

0

Act as a computer science teacher for children. Age group: [age] Concept: [sequences, loops, conditionals, variables, debugging] Group size: [number] Time: [minutes] Materials: [paper, cards, floor space] Design an unplugged activity with: learning goal, setup, step-by-step instructions, how it connects to real code,…

ChatGPT
Education & Learning

Teach kids coding concepts without a computer

Fun unplugged activities that teach sequences, loops, conditions and debugging to children.

0

Act as a data analyst using Python and pandas. Data: [file type and columns with example values] Questions I want answered: [list] Issues I know about: [missing values, inconsistent formats] Write a script or notebook steps to: 1. Load and inspect the data 2. Clean it (types, missing values, duplicates, outliers) 3. A…

ChatGPT
Coding & Development

Data analysis with pandas

Load, clean, analyse and chart your data with pandas, with explanations for each step.

0

Explain this error in plain English and help me fix it. Language/framework: [e.g. Python 3.12 / Node 20 / Laravel] What I was doing: [action] Error: ``` [paste error and stack trace] ``` Relevant code: ``` [paste code] ``` Please give: 1. What the error means 2. The most likely cause (and other possible causes) 3. The…

ChatGPT
Coding & Development

Explain an error message and fix it

Paste a confusing error or stack trace and get a plain-English explanation, the likely cause and a fix.

0

Act as a Python developer. Website: [URL or type of site] Data to extract: [fields] Pages: [single page / pagination / list of URLs] Output: [CSV / JSON] Write a script using requests + BeautifulSoup (or Playwright if the page needs JavaScript) that: - Respects robots.txt and adds a delay between requests - Sets a cle…

ChatGPT
Coding & Development

Python web scraper

Build a polite, robust web scraper that extracts structured data and saves it to CSV or JSON.

0

Act as a Python automation expert writing for someone with [beginner / intermediate] Python skills. Task I want to automate: [describe it step by step] Input: [files, folders, spreadsheets, websites, APIs] Output: [what should be created or changed] Operating system: [Windows / macOS / Linux] How often it runs: [once…

ChatGPT
Coding & Development

Python script to automate a boring task

Describe a repetitive task like renaming files, cleaning spreadsheets or sending reports, and get a safe, well-commented Python script.

0

Act as a regular expression expert. Regex flavour: [JavaScript / Python / PHP (PCRE) / Java / .NET] What I need to match: [describe, e.g. UK postcodes, dates in DD/MM/YYYY, URLs without query strings] Should match: [examples] Should NOT match: [examples] Please give: 1. The regex 2. A token-by-token explanation in pla…

ChatGPT
Coding & Development

Regex generator with plain-English explanation

Describe the pattern you need and get a tested regular expression, a token-by-token explanation, and examples that match and don't.

0

You are a senior software engineer doing a careful code review. Language/framework: [e.g. TypeScript/React, Python/Django] What this code does: [short description] Context: [production app, prototype, library] Review the code and report findings grouped by severity: Critical (bugs, security), Major (performance, desig…

Claude
Coding & Development

Code review like a senior engineer

Get a thorough review covering bugs, security, performance, readability and tests, with severity levels and suggested fixes.

0

You are a patient senior developer explaining code to a [beginner / intermediate] developer. Language/framework: [e.g. Python, JavaScript/React] Explain the code below: 1. In 2–3 sentences, what does it do overall and why would someone write it? 2. Walk through it section by section (group related lines), explaining w…

Claude
Coding & Development

Explain this code line by line

Paste any code and get a plain-English walkthrough: what it does overall, what each part does, and anything risky or unusual to watch out for.

0