chat1
for index, file in enumerate(enumerate(files, start=1)1):
mod_time = file.stat().st_mtime
formatted_time = time.strftime('%Y-%m-%d, %H:%M:%S', time.localtime(mod_time))
print( print(f"{index}. {file.name} (modified: {formatted_time})")