I have a list that has data as following:
[[a,b,1], [c,d,3], [a,c,2], [c,d,1]]
How can I write this list of lists to a csv file?
I tried this, but it did not work.
with open('output.csv', 'w') as f:
f.write((list))
I have a list that has data as following:
[[a,b,1], [c,d,3], [a,c,2], [c,d,1]]
How can I write this list of lists to a csv file?
I tried this, but it did not work.
with open('output.csv', 'w') as f:
f.write((list))