shutil has many methods you can use. One of which is: from shutil import copyfile copyfile(src, dst)
Here is what the above code is Doing:
1. We’re importing the copyfile method from the shutil module.
2. We’re using the copyfile method to copy the contents of the file at src to the file at dst.