title: Writing console output(space seperated text) to seperate columns of excel sheet using Python
body: <p>I have a console output , which has multiple rows of space separated strings.for ex-</p>
  
  <blockquote>
    <p>Hi everyone</p>
    
    <p>Hello to all</p>
    
    <p>Welcome to python</p>
  </blockquote>
  
  <p>I want to write them into separate rows of excel file with each string into separate column for ex-</p>
  
  <pre><code>     A1      A2         A3
  B1   Hi      everyone
  B2   Hello   to         all
  B3   Welcome to         python
  </code></pre>
  
  <p>Do we have any (text to columns) utility in xlwt package of python.? </p>
  
  <p><strong>UPDATE</strong>
  I have an exe which has got these print statements ,outputting all at once.I just execute that exe and get the prints on console.I want to read from the console and write to excel sheet like I have explained above.Here is the code:</p>
  
  <pre><code>#!/usr/bin/env python
  import subprocess
  import xlwt
  process=subprocess.Popen('Test_Project.exe',stdout=subprocess.PIPE)
  wb=xlwt.Workbook()
  sheet=wb.add_sheet('python')
  for rows in range(10):    #let say 10 rows and columns we have
      for cols in range(10):
          out = process.stdout.readline()
          sheet.write(rows,cols,out)
          print out
  wb.save('stdoutput.xls')
  </code></pre>