i have the following list :
sec_min=['37', '01', '37', '02', '37', '03', '37', '04', '37', '05',....]
i want to store this list into CVS file in following format:
37,01
37,02
37,03
37,04 ... and so on
this is what i coded:
with open('datas.csv','w')as f:
data=csv.writer(f)
for value in sec_min:
data.writerow(sec_min[:2])
(i.e. every two elements of list in new row)