import shutil
# Copy the file
shutil.copyfile('my_file.txt', 'my_file_copy.txt')
Output
Explanation
In this example, the shutil module is used to copy the file my_file.txt to a new file called my_file_copy.txt.
Note: This example assumes that the file my_file.txt already exists. If the file does not exist, an error will be raised when the copyfile() method is called.