Albatta, siz asl fayl kengaytmasini saqlab qolish uchun kodni os.path.splitext funksiyasidan foydalangan holda o'zgartirishingiz mumkin. Yangilangan kod: ``` import os path = '/path/to/folder' files = os.listdir(path) for index, file in enumerate ((files): file_name, file_ext = os.path.splitext ((file) os.rename.path.join ((path, file), os.path.join ((path, ').join[str (((index + 1),_ext]))) ``` Ushbu kod os.path.splitext funksiyasidan foydalanib fayl nomi va uning kengaytmasini bo'ladi. O'zgaruvchi os.path.splitext fayl nomi kengaytmasiz fayl nomini saqlaydi, o'zgaruvchi_ext esa fayl kengayt
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence