title: How do you write several arrays into an excel file?
body: <p>If I had several arrays I want to write into an excel file using Python, what would be the best way to go about it? I've tried several ways and cant figure it out.... this is an example of one way I was trying... Im quite new to this</p>
  
  <pre><code>import xlwt
  from tempfile import TemporaryFile
  book = xlwt.Workbook()
  sheet1 = book.add_sheet('sheet1')
  
  
  a=[1,2,3,4,5]
  b=[6,7,8,9,10]
  c=[2,3,4,5,6]
  
  data = [a,b,c]
  
  for i,e in enumerate(data):
      sheet1.write(i,1,e)
  
  name = "this.xls"
  book.save(name)
  book.save(TemporaryFile())
  </code></pre>