How to get every 3rd lines from a csv file using python?
import csv
with open ('data.csv','r') as infile:
contents = csv.reader(infile, delimiter =' ')
then???
The csv file looks like:
aaaaaaaaaaaaaaaa
bbbbbbbbbbbbbbbb
only recquired line
cccccccccccccccccccccccccc
ddddddddddddddddddddddddd
only recquired line
The result should look like:
only recquired line
only recquired line