I have 5 lists, all of the same length, and I\'d like to write them to 5 columns in a CSV. So far, I can only write one to a column with this code:
with open
You can use izip to combine your lists, and then iterate them
for val in itertools.izip(l1,l2,l3,l4,l5): writer.writerow(val)