Sorting and Organizing Work Files

# Introduction In this challenge, we will be sorting and organizing work files using a Python script. The objective is to sort different types of documents in a specified folder based on their names and types. The script should create folders for each file type and classify files with the same name but different types into the same folder. The function should also handle files with no file extension and place them in a folder named 'others'. Finally, the function should return a dictionary containing the names of the sorted folders and the number of files in each folder.

|
60 : 00

Click the virtual machine below to start practicing