# Please provide the 1.txt file in the current folder as input and
# check after runing the program in the same folder for 2.txt
I=open('1.txt',"r")
O=open('2.txt',"w")
for l in I.readlines():
O.write(l)
I.close()
O.close()
Solve Problems by Coding Solutions - A Complete solution for python programming