How do you make a copy of a file with Python?
How do you make a copy of a file with Python?
a. copyfile(‘file.txt’, ‘file_copy.txt’)
b. import shutil
shutil.copyfile(‘file.txt’, ‘file_copy.txt’)
c. open(‘file.txt’, ‘file_copy.txt’)
d. copy(‘file.txt’, ‘file_copy.txt’)