Python - How to import 'copyfile' -- shutil

Import copyfile

To import copyfile, Add the following line to the top of your code.

from shutil import copyfile

 

For more information about copyfile:
shutil copyfile