0 votes
1 view
in Python by (20.2k points)

How do I copy a file in Python?

I couldn't find anything under os.

1 Answer

0 votes
by (50.5k points)

For copying a file in Python you can use the shutil library which has many methods which you can use. 

One of them is as follows:-

from shutil import 

copyfile copyfile(src, dst)

Welcome to Intellipaat Community. Get your technical queries answered by top developers !

Categories

...