To write a python program for copying the contents from one file to another file.
PC Anaconda - Python 3.7
# Developed by Vineesh.M
# Ref No : 21004131
# To write a program for copying the contents from one file to another file.
with open ('copy1.txt') as c1:
with open ('copy2.txt','w') as c2:
for line in c1:
c2.write(line)
Thus the program is written to copy the contents from one file to another file.