I need to zip groups of files in a single directory similar to the example below -
a.jpg
a.png
a.gif
b.jpg
b.png
b.gif
c.jpg
c.png
c.gif
I need all of the a's to be zipped into one file, all of the b's zipped into one file and all of the c's zipped into one file.
What's the best way to go about doing this? Most of what I've found online is for zipping an entire directory. I'm considering shutil.make_archive?