First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can do:

sage: C = zip(A, B)
sage: with open('file_path.csv', 'w') as f:
....:     c = csv.writer(f)
....:     c.writerows(C)