Programming Prompts
Use these prompts to get small, runnable programs from an AI assistant β code that reads input, does one job clearly, and prints a result you can check.
When to use these prompts
Section titled βWhen to use these promptsβ- You need a quick command-line script for a well-defined task.
- You want standard-library-first code with minimal setup.
- You want example input and output alongside the code so you can verify it.
Prompts in this category
Section titled βPrompts in this categoryβ| Prompt | What it does |
|---|---|
| Generate Python Code | Prompt template for generating practical Python code that reads from stdin and outputs to stdout. |
How to use them
Section titled βHow to use themβ- Open a prompt and copy the text block.
- Replace every placeholder in angle brackets, such as
<TOPIC>or<TASK>. - Describe the input, the expected output and an example after the prompt.
- Run and test the generated code yourself; never deploy code you have not read and executed.