Read a file content and copy only the contents at odd lines into a
new file
fn = open('bcd.txt', 'r')
fn1 = open('nfile.txt', 'w')
cont = fn.readlines()
type(cont)
for i in range(0, len(cont)):
if(i % 2 !
= 0):
fn1.write(cont[i])
else:
pass
fn1.close()
fn1 = open('nfile.txt', 'r')
cont1 = fn1.read()
print(cont1)
fn.close()
fn1.close()