To write a python program for copying the contents from one file to another file.
PC Anaconda - Python 3.7
#Developed By:SHALINI.K
#Register No: 212222240095
with open('f1.txt','r') as f1:
with open ('f2.txt','a') as f2:
for line in f1:
f2.write(line)
Thus the program is written to copy the contents from one file to another file.