Problem of writing long list of lists file to csv
subhabangalore at gmail.com
subhabangalore at gmail.com
Tue May 22 09:51:55 EDT 2018
On Tuesday, May 22, 2018 at 3:55:58 PM UTC+5:30, Peter Otten wrote:
>
>
> > lst2=lst1[:4]
> > with open("my_csv.csv","wb") as f:
> > writer = csv.writer(f)
> > writer.writerows(lst2)
> >
> > Here it is writing only the first four lists.
>
> Hint: look at the first line in the quotation above.
Thank you Sir. Sorry to disturb you.
More information about the Python-list
mailing list