File Handling

Home Technical Terms File Handling

 How to copy the content of a file to another file in Python?

from shutil import copyfile
copyfile
('test.py', 'abc.py')