To test this code add xlsx,txt or jpg files to TestFolder and then execute the code
Python Project which sorts files into folders according to the file type and extension