Single-file web app
No coding needed: describe the tool you want and get one HTML file that works when you open it.
Home / Prompts / Life / Python automation script
Saved
Saved items are kept in this browser. To get back faster, press Ctrl+D to bookmark this page.
Saved items are kept in this browser. To get back faster, press ⌘+D to bookmark this page.
Saved items are kept in this browser. To get back faster, use your browser’s Share → “Add to Home Screen”.
Rename files in bulk, sort photos, merge spreadsheets... describe the chore and get a script that does it in one go.
The prompt is put together in your browser. Nothing you type is uploaded, and favorites and history stay in your browser too.
Fill it in like this. Press the button below to put the example into the form above.
Illustrative excerpt: the real answer depends on the AI you use and what you fill in.
```python
from pathlib import Path
from datetime import datetime
import shutil
SOURCE = Path.home() / "Downloads" # folder to tidy up
DRY_RUN = True # dry run: only list what would happen, move nothing
for photo in SOURCE.glob("*"):
if photo.suffix.lower() not in {".jpg", ".jpeg", ".png"}:
continue
taken = datetime.fromtimestamp(photo.stat().st_mtime)
target = SOURCE / taken.strftime("%Y-%m")
print(f"{photo.name} -> {target.name}/")
if not DRY_RUN:
target.mkdir(exist_ok=True)
shutil.move(str(photo), target / photo.name)
```
How to run it (Windows)
1. Download and install Python from python.org and tick "Add Python to PATH"
2. Save the code as sort_photos.py
3. ...
When the list looks right, change DRY_RUN to False and run it again. No coding needed: describe the tool you want and get one HTML file that works when you open it.
Paste your code and the error message to get the cause, a fixed version and how to avoid it next time.
Say in plain words what you want to calculate and get a formula you can paste, with each part explained.