⚙️
STUDENT NOTES · DAY 22 OF 24
The Chore Robot ⚙️
Anything you do the same way every week, a script can do for you — forever, for free, without sighing.
1os — Python's remote control for your computer
🤖
Bittu: I can list, rename, move and sort a thousand files while you pick a playlist.
2The classic: organize a messy folder
🐍
Py: endswith(".jpg") → photos folder, ".pdf" → documents. Your Downloads folder's messiness is officially optional now.
3Pacing and patience: time.sleep
4Run it every morning — without waking up
🦉
Professor Hoot: A scheduler (Task Scheduler on Windows, cron on Mac/Linux) runs your script on a timetable. Reports send themselves at 9 AM while you dream.
🐞
Bugly: Automated scripts fail SILENTLY when you don't add error shields. Day 14 exists for a reason… hehehe.
5Quick quiz! 🧠
os.listdir(".") gives you…
💡 "What's in this folder?" — the opening move of nearly every automation script.
You do a task the same way every Sunday. You should…
💡 Repetitive = automatable. That's the whole philosophy of this chapter.
6Your mission 🚀
Mission 1: List every file in your Downloads folder with os.listdir.
Mission 2: Count how many are PDFs using .endswith(".pdf") in a loop.
Mission 3: Design (on paper!) your dream automation. Best idea becomes a class project.
Day 22 done — your chores fear you now! ⚙️
Next: THE FINAL PROJECT — everything you know, in one build.
Go to Day 23: Final Project →