I have a list of lists like [('a', 'b', 'c'), ('d', 'e', 'f'),....]. I want to write it to a CSV file like this-
a, b, c
d, e, f
How do I do that?
I've tried using csv.writerows but the output file had each character in different cells and all together in same row. In the sense, the cells in row one had ' a ' ' b ' etc.
Thanks.
a b c, d e f,?for lst in wholeList: csv.writerow(lst)? This yould write every row in another line of the file (or at least i think so).writerowand notwriterows?