If I have a list of strings as follows:
data = ['a,x', 'b,y', 'c,z']
f = open('data.csv', 'wb')
w = csv.writer(f, delimiter = ',')
w.writerow(data)
f.close()
The problem is that they are saved in 3 cells on a single line like this: (" " is one Excel cell)
"a,x" "b,y" "c,z"
What I really want is the following:
"a" "x"
"b" "y"
"c" "z"
so that they are in separate cells and separate lines. Does anyone know how to do this correctly?