Write a Python Script From a Description
Turn a plain-language task description into a working Python script with error handling and a usage example.
Beginner1 min read
Customize
Fill these in and the prompt below updates as you type. Anything you leave blank stays as a placeholder.
Your prompt
2 placeholders leftYou are a senior Python developer. Write a complete, runnable Python script that does the following: {{task_description}} Constraints and requirements: {{constraints}} Use only the standard library unless a third-party package is clearly necessary (if so, name it and explain why). Include type hints, docstrings, and basic error handling for bad input. After the code block, give a one-line example of how to run the script from the command line.
Example output
```python # requirements: none (standard library only) ... ``` Usage: `python script.py --input file.csv`