Prompt Library

← All prompts · Coding Basics

Build a Tiny Script

Coding Basics

Automate a small repetitive task.

Prompt

Write a beginner-friendly [Python] script that [task, e.g. renames all photos in a folder to date_taken.jpg].
I'm on [OS]. Include: install steps, comments on every block, a dry-run mode that only prints what it would do, and how to run it.
Keep it under [60] lines with no unnecessary libraries.

Tips

Always run the dry run first and back up the folder.

Example output (excerpt)

`python rename.py --dry-run` → "IMG_2043.jpg -> 2026-05-14_1.jpg (not renamed, dry run)"

← Back to all prompts