Next time when you are stuck then please be more specific about the error and output you expect so we don't have to waste time assuming your expected output. Now coming to the your problem when i open output1.csv in linux after executing the above thing , it is empty I think you need to read up more about iterators and also about file operations. So running your script in my machine gave me this error which is pretty easy to understand.
TypeError: a bytes-like object is required, not 'str'
Python and it's errors are so readable isn't it !? This error was correct as python was expecting a bytes-like object as the error says! Change that to w+ ( and read more about permissions in the links given in the answer).
Now this writer.writerows(izip(list1, list2)) has to understood clearly ( also provided in the links in this answer). When life gives you an iterator, you just iterate it! Grab a reference to iterate the iterator and you are good. Please read more about it.
import csv
from itertools import izip
list1 = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n']
list2 = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13']
with open('output1.csv', 'w+') as f:
writer = csv.writer(f)
writer.writerows([i for i in izip(list1, list2)]) # your homework to figure out what this means and does.
Let me know if this answer worked for you by accepting it!
Cheers!
bflag in the file opening mode? Why bytes?open("output1.csv")qualifies as opening the file. If you are unable to open it with vi maybe your vi installation is corrupt or you are not using it correctly.