23
Shoutout to the person who told me to write a script to rename 200 files
I had a folder with about 200 image files named like 'IMG_001.jpg', 'IMG_002.jpg', and so on. I needed them to be 'product_001.jpg', 'product_002.jpg'. Doing it by hand would have taken an hour. A friend told me to look up a batch rename script in Python. I found a five line script online, ran it, and it was done in two seconds. Some people say beginners should avoid scripts and do things manually to learn the basics first. Others say solving a real problem with a few lines of code is the best way to learn. What's the better approach for a total newbie?
3 comments
Log in to join the discussion
Log In3 Comments
hayden4661mo ago
Exactly, I learned Python the same way fixing my music files.
7
jordan_young21d ago
You mean the library renaming script? That's a classic first project but it's more about file manipulation than actual Python logic. Still gets the job done though.
5