Create a 6-week coding course for a [age]-year-old using [Scratch / Python / block coding]. Each week: a fun project (game or animation), the concept it teaches, step-by-step instructions, and a challenge extension.
Results for “python”
23 prompts
Write a pandas script to clean this CSV: [describe columns and problems, e.g. mixed date formats, duplicates, missing values, inconsistent names]. Log each cleaning step, keep a summary of rows changed, and save a clean file.
Python data cleaning script
Cleans messy CSV data into an analysis-ready table.
Write Python code using [matplotlib/plotly] to visualise [data description] as [chart type]. Add a clear title, labelled axes, readable fonts, sensible colors, annotations for key points, and save as PNG.
Build a minimal web chatbot in [stack] that calls the [AI provider] API. Include a chat UI, conversation history, a system prompt for [use case], streaming responses, API key stored in environment variables, and basic rate limiting.
Build a simple AI chatbot with an API
A minimal chatbot app that calls an AI model API.
Outline and code a simple RAG prototype in Python that answers questions from [documents]. Cover loading and chunking documents, creating embeddings, storing them in [vector store], retrieving relevant chunks, building the prompt, and citing sources in answers.
Retrieval-augmented generation (RAG) prototype
Answers questions from your own documents using embeddings.
Write a Python class for [purpose, e.g. a shopping cart]. Include type hints, docstrings, validation, a clean public API, and pytest unit tests covering normal use and edge cases.
Write a Python class with tests
A well-designed Python class with type hints and unit tests.
Write a FastAPI endpoint for [operation, e.g. creating an order]. Use Pydantic models for request and response, validate [fields], return proper status codes, handle errors, and include an example request with curl and a pytest test.
Python FastAPI endpoint
A typed FastAPI endpoint with validation and error handling.
You are a bot developer. Platform: [Discord / Telegram] Language: [Python / JavaScript] Features: [commands, welcome messages, reminders, polls, moderation] Write the bot with a clear structure, command handlers, permission checks, error handling, and environment variables for the token (names only). Include setup ste…
Discord or Telegram bot
Build a simple community bot with commands, moderation helpers or notifications.
You are a machine learning engineer. Problem: [classification / regression] Data: [columns, target, size] Goal: [what decision the model supports] Write a scikit-learn pipeline: data loading, cleaning, feature engineering, train/test split, a baseline model and a stronger model, cross-validation, appropriate metrics,…
Machine learning model starter
Build a baseline ML model with proper train/test split, evaluation and next steps.
You are a tech lead planning an upgrade. Current and target versions: [e.g. React 17 → 19, Python 3.8 → 3.12, Laravel 9 → 11] Codebase size and test coverage: [details] Key dependencies: [list] Create: breaking changes to check (verify against official upgrade guides), dependency compatibility plan, step-by-step upgra…
Framework upgrade migration plan
Plan a safe upgrade between major versions of a framework or language.
You are a performance engineer. Platform: [browser app, Node.js, Python, mobile] Symptoms: [memory grows over time, crashes after X hours] Suspicious code: ``` [paste] ``` Explain common leak causes for this platform, how to profile and capture heap snapshots step by step, what to look for, likely culprits in my code,…
Investigate a memory leak
Find and fix memory leaks in web apps, Node.js services or mobile apps.
Act as a senior Django developer. Django version: [version] Feature: [description] Models and fields: [details] Users and permissions: [details] Generate: models with Meta options and __str__, admin with list_display/filters/search, forms with validation, class-based views, URLs, templates outline, and tests. Explain…
Django model, admin and views
Create Django models, admin configuration, forms and views for a new feature.