You don't need to be a "programmer" to make Python save you time. If you can install Python and copy-paste, you can automate the small, repetitive chores that eat your week — renaming batches of files, tidying folders, checking websites, crunching spreadsheets. Every script below uses only Python's built-in standard library — no installs, no setup headaches — and each one is short enough to understand in five minutes. Copy one, tweak the folder names and patterns to match your life, and run it.
First: Run a Python Script
Install Python from python.org (check the box that adds Python to PATH on Windows), save any script below as script.py, and run it from a terminal:
python script.py
That's the whole setup. Now the scripts.
1. Bulk-Rename Files
Hundreds of photos named IMG_2938.jpg? Rename them all in one shot:
from pathlib import Path
folder = Path("photos")
for i, f in enumerate(sorted(folder.glob("*.jpg")), start=1):
f.rename(f.parent / f"photo_{i:03d}.jpg")
print("Done!")
Change "photos" to any folder and "*.jpg" to any file pattern. The :03d part pads numbers (001, 002, ...).
Safety tip: scripts 1 and 2 move and rename real files. Before running any file-mangling script for the first time, test it on a copy of your files in a throwaway folder. It takes thirty seconds and has saved countless beginners from renaming the wrong folder.
2. Organize Your Downloads Folder
Sort files into subfolders by type — run it weekly and never dig through chaos again:
from pathlib import Path
import shutil
downloads = Path.home() / "Downloads"
kinds = {".pdf": "Documents", ".jpg": "Images", ".png": "Images",
".mp4": "Videos", ".zip": "Archives"}
for f in downloads.iterdir():
if f.is_file() and f.suffix.lower() in kinds:
dest = downloads / kinds[f.suffix.lower()]
dest.mkdir(exist_ok=True)
shutil.move(str(f), dest / f.name)
print("Downloads organized!")
Add your own extensions to the kinds dictionary to cover whatever you download most.
3. Check If Websites Are Up
Monitor your blog, portfolio, or side project without paying for a service:
import urllib.request
sites = ["https://www.google.com", "https://www.github.com"]
for site in sites:
try:
code = urllib.request.urlopen(site, timeout=10).status
print(f"{site} -> OK ({code})")
except Exception as e:
print(f"{site} -> DOWN ({e})")
Put your own URLs in the list. Pair it with your operating system's task scheduler to run it automatically every hour.
4. Summarize Expenses From a CSV
Exported your bank or card transactions as CSV? Get instant totals per category:
import csv
from collections import defaultdict
totals = defaultdict(float)
with open("expenses.csv", newline="") as f:
for row in csv.DictReader(f):
totals[row["category"]] += float(row["amount"])
for category, total in sorted(totals.items()):
print(f"{category:15} ${total:,.2f}")
This expects columns named category and amount — rename them in the code if your export uses different headers.
5. Find Your Most-Used Words
A fun one: count word frequency across all text files in a folder (great for writers checking overused words):
from pathlib import Path
from collections import Counter
import re
words = Counter()
for f in Path(".").glob("*.txt"):
text = f.read_text(encoding="utf-8", errors="ignore").lower()
words.update(re.findall(r"[a-z']+", text))
for word, count in words.most_common(10):
print(f"{word:15} {count}")
Tips for Going Further
- Schedule them. On Windows use Task Scheduler; on Mac/Linux use cron or launchd — your scripts then run while you sleep.
- Start from a real annoyance. The best automation ideas come from tasks you catch yourself repeating.
- Keep scripts small. One script, one job. Easier to debug, easier to reuse.
- Read the error message. Python's tracebacks point at the exact line — 90% of beginner bugs are typos or wrong file paths.
- Learn three modules deeply:
pathlib(files),csv(spreadsheets), andre(text patterns) cover a surprising share of everyday automation.
Key Takeaways
- You only need standard-library Python — no installs — to automate real chores.
- File renaming, folder organizing, uptime checks, CSV summaries, and text analysis are all under 20 lines each.
- Schedule a script once, and it keeps paying you back every day.
📘 Know Someone Who Finds Tech Confusing?
Tech Made Simple for Seniors is our plain-English ebook that explains smartphones, the internet, and everyday tech with zero jargon — perfect for parents and grandparents.
Get the ebook here — use code LAUNCH at checkout and get it for $12 (reg. $19).

Comments
Post a Comment