title: read specific data in CSV
body: <p>I have written a code that reads the product given as an input and gives the output of the price of the product </p>
  
  <p><strong>data.csv file</strong></p>
  
  <pre><code>1, 4.00, teddy_bear
  1, 8.00, baby_powder
  2, 5.00, teddy_bear
  2, 6.50, baby_powder
  3, 4.00, pampers_diapers
  3, 8.00, johnson_wipes
  4, 5.00, johnson_wipes
  4, 2.50, cotton_buds
  5, 4.00, bath_towel
  5, 8.00, scissor
  6, 5.00, scissor
  6, 6.00, bath_towel, cotton_balls, powder_puff
  </code></pre>
  
  <p><strong>python code</strong></p>
  
  <pre><code>import csv
  
  with open('data.csv') as csvfile:
      readCSV = csv.reader(csvfile, delimiter=',')
      usrid = []
      price = []
      product = []
      for row in readCSV:
          usrid.append(row[0])
          price.append(row[1])
          product.append(row[2])
  
      askProduct = raw_input('What Product do you wish to know the price of?:')
      abc = product.index(askProduct)
      thePrice = price[abc]
      print ('the price of product',askProduct, 'is', thePrice)
  </code></pre>
  
  <p><strong>error generated</strong></p>
  
  <pre><code>Traceback (most recent call last):
  File "C:/Users/Desktop/program.py", line 15, in &lt;module&gt;
  abc = product.index(askProduct)
  ValueError: 'teddy_bear' is not in list
  </code></pre>
  
  <p><strong>following output is needed</strong></p>
  
  <pre><code>Program Input
  program data.csv teddy_bear baby_powder
  
  Expected Output
  
  =&gt; 2(userid), 11.5(addition of two products)
  </code></pre>