This repository contains an optimized prompt for generating clean and testable Python code using LLMs (Large Language Models).
- Minimalistic, high-quality prompt for Python code generation
- Focuses on clean, readable code and unit testing
- Easy to adapt for different Python tasks
- Copy the contents of
prompt.txt. - Paste it into your LLM interface (ChatGPT, Copilot, etc.).
- Add your task description below the prompt.
- Run the model and get your code!
See examples folder for sample tasks and outputs.
MIT — free for any use and modification.
Feel free to open issues or pull requests to improve the prompt or add new examples!