Prompts producing Python programs.
4votes
1answers
988views

What's the best prompt structure for getting Python scripts with proper error handling?

Every generated Python script I get is happy-path only: no retries, bare excepts, crashes on the first weird input. I've been experimenting with a checklist-style prompt suffix that forces defensive c