[Tutor] list to csv

2008-09-30 Thread Arun Tomar
hi! I've a list new_array = ['n1', 'm1', 'p1', 'n2', 'm2', 'p2', 'n3', 'm3', 'p3'] I am trying to convert this to a csv in 3 columns so that the final output would look something like this n1,m1,p1 n2,m2,p2 n3,m3,p3 regds, arun. ___ Tutor

Re: [Tutor] list to csv

2008-09-30 Thread Steve Willoughby
Arun Tomar wrote: hi! I've a list new_array = ['n1', 'm1', 'p1', 'n2', 'm2', 'p2', 'n3', 'm3', 'p3'] I am trying to convert this to a csv in 3 columns so that the final output would look something like this n1,m1,p1 n2,m2,p2 n3,m3,p3 This can easily be done with the csv module in the