Skip to content
IT Vizag
← Files, Modules & Packages

▶ Sign up free for the video, slides & prompts

The lesson below is open to all. Enter your email once to unlock every video, slide deck, prompt and code example on this device.

Checking…

AI angle: automate a boring task

Lesson 9 of 10 · 2 min read

Use AI to help write a script that renames and sorts files.

🎬 Video version coming soon — read it now

One of Python's best uses is automating boring computer work. AI can help you write the script, as long as you stay in charge and test it safely.

A typical boring task

Your Downloads folder is a mess: PDFs, photos, Excel files and zips all mixed together. Let's sort them into folders by type.

Ask AI clearly

🔒 Ready-to-copy prompt: sign up free (above) to unlock it.

The dry run requirement is the most important line. You see exactly what will happen before anything changes.

What a good answer looks like

🔒 Code example: sign up free (above) to unlock it.

Read every line before running it. Do you understand what each one does? If not, ask the AI to explain that line.

Test safely

  1. Make a test folder with a few dummy files. Never test on your real files first.
  2. Run with DRY_RUN = True and read the output.
  3. Switch to False, run on the test folder, and check the result.
  4. Only then point it at the real folder.

Ideas for your own automations

  • Rename photos to 2026-12-06_001.jpg using their dates
  • Merge 30 monthly CSV files into one
  • Find duplicate files by size and name
  • Make a folder for each student from a list of names
Tip: Scripts that move or delete files can't be undone with Ctrl+Z. Dry runs, test folders and backups are what separate professionals from people who lose a day's work.

In one line

Let AI draft automation scripts, but demand a dry-run mode, read every line, and test on dummy files first.

Saved on this device. Sign in to keep progress everywhere.

Share with a friend