change the name of files python code example
Example 1: rename file python
import os
os.rename('old_name.txt','new_name.txt')
Example 2: python change filename
import os
os.rename('a.txt', 'b.kml')
import os
os.rename('old_name.txt','new_name.txt')
import os
os.rename('a.txt', 'b.kml')