Python, Automation, Data Science, Artificial Intelligence, Llm.
"Images": [".jpg", ".jpeg", ".png", ".gif"], "Videos": [".mp4", ".avi", ".mov"], "Audio": [".mp3", ".wav", ".aac"], "Others": [] } # Iterate over files in the main folder for filename in os.listdir(main_folder): file_path = os.path.join(main_folder, filename) # Check if it's a file (not a folder)