copy a file and rename it python code example
Example 1: python rename file
import os
os.rename('guru99.txt','career.guru99.txt')
Example 2: python copy file to new filename
shutil has many methods you can use. One of which is:
from shutil import copyfile
copyfile(src, dst)