Look for files that are copies or has the same name but different extensions and groups them by creating a new directory.
This piece of code is very dear to me, as it is my very first code of my own creation. I created this code back in 2019 after learning to code from a few YouTube and online sources. This was the very first time I touch actual "coding" and fell in love with the process of frustration, confusion and satisfaction when my code actually started working.
The idea for this code come about during my internship. I was tasked to sort a bunch of documents and excel files and group them by creating a folder with the same name. The documents and their associated excel files are correlated by the name of the files. There are also the occasional duplicate files which I was told to place them in the folder as well.