title: Writing the output of a python code to multiple rows in excel
body: <p>I am trying to write the output of a python code in an excel sheet.</p>
  
  <p>Here's my attempt:</p>
  
  <pre><code>import xlwt
  
  wbk = xlwt.Workbook() 
  sheet = wbk.add_sheet('pyt')
  row =0 # row counter
  col=0  # col counter
  inputdata = [(1,2,3,4),(2,3,4,5)]
  for c in inputdata:
      for d in c:
          sheet.write(row,col,d) 
  
          col +=1 
      row +=1
  wbk.save('pyt.xls')
  
  Result obtained:
  1 2 3 4
        2 3 4 5
  
  Desired result
  row1:  1 2 3 4 
  row2:  2 3 4 5
  </code></pre>
  
  <p>Any ideas on how to get the desired result? thanks</p>