f1=open("D:/mathew/p1.txt" ,"w")

line=f.readlines()
type(line)
for i in range(0,len(line)):
    if(i%2!=0):
        f1.write(line[i])
    else:
        pass
f1.close()
f1=open("D:/mathew/p2.txt","r")
lines=f1.read()
print(lines)
f1.close()
f.close()