title: Python - Using Input From CSV File/Splitting a String
body: <p>I'm very new to Python. I don't have a strong handle on all of the vocabulary.</p>
  
  <p>My current task includes leading data from a CSV file in the format of:</p>
  
  <pre><code>row1data1,row1data2,row1data3
  row2data1,row2data2,row2data3
  etc.
  </code></pre>
  
  <p>From what I've gathered, the csv.reader/csvfile built-in module creates a single string from each row. I need two strings from each row, with the comma being the delimiter.</p>
  
  <p>This is the my current code and output.</p>
  
  <p>CODE:</p>
  
  <pre><code>import csv
  with open('Sparrow.csv', 'r') as csvfile:
      CSVReader = csv.reader(csvfile, quotechar='|')
      for row in CSVReader:
         print( "TEXT" )
         print( "\n" )
         print( "TEXT INPUT REQUIRED:'%s'" % " ".join(row))
         print( "\n" )
         print( "TEXT INPUT REQUIRED:'%s'" % " ".join(row))
         print( "\n" )
         print( "TEXT" )       
         print( "\n" )
         print( "('%s'));" % " ".join(row))
         print( "\n" )
         print( "\n" )
  </code></pre>
  
  <p>OUTPUT</p>
  
  <pre><code>TEXT
  TEXT INPUT REQUIRED:'row1data1 row1data2 row1data3'
  TEXT INPUT REQUIRED:'row1data1 row1data2 row1data3'
  TEXT
  ('row1data1 row1data2 row1data3'));
  
  
  TEXT
  TEXT INPUT REQUIRED:'row2data1 row2data2 row2data3'
  TEXT INPUT REQUIRED:'row2data1 row2data2 row2data3'
  TEXT
  ('row2data1 row2data2 row2data3'));
  </code></pre>
  
  <p>Again, to clarify, I need to split the strings so the output is as displayed below.</p>
  
  <pre><code>TEXT
  TEXT INPUT REQUIRED:'row1data1'
  TEXT INPUT REQUIRED:'row1data2'
  TEXT
  ('row1data3'));
  
  
  TEXT
  TEXT INPUT REQUIRED:'row2data1'
  TEXT INPUT REQUIRED:'row2data2'
  TEXT
  ('row2data3'));
  </code></pre>
  
  <p>I know this is something very easy that I'm missing and any help would be appreciated.</p>