Hello, I have the following list
l=[[1,2,3,4],[5,6,7,8]]
and I want to generate a csv file something like this:
1 5
2 6
3 7
4 8
the code that I have worked on is this
with open("output.csv", "wb") as f:
writer = csv.writer(f)
writer.writerows(l)
but what it does is generate a csv file like this:
1,2,3,4
5,6,7,8
and what I really want is that each sublist is a column of the csv file I have already looked at several examples but none clarifies the doubt. I hope you can help me.