title: Using Python's csv.dictreader to search for specific key to then print its value
body: <p><strong>BACKGROUND:</strong></p>
  
  <p>I am having issues trying to search through some CSV files.
  I've gone through the python documentation: <a href="http://docs.python.org/2/library/csv.html" rel="nofollow">http://docs.python.org/2/library/csv.html</a>
  about the <code>csv.DictReader(csvfile, fieldnames=None, restkey=None, restval=None, dialect='excel', *args, **kwds)</code> object of the csv module.</p>
  
  <p>My understanding is that the <code>csv.DictReader</code> assumes the first line/row of the file are the fieldnames, however, my csv dictionary file simply starts with "key","value" and goes on for atleast 500,000 lines.</p>
  
  <p>My program will ask the user for the title (thus the key) they are looking for, and present the value (which is the 2nd column) to the screen using the print function. My problem is how to use the csv.dictreader to search for a specific key, and print its value.</p>
  
  <p><strong>Sample Data:</strong>
  Below is an example of the csv file and its contents...</p>
  
  <pre><code>"Mamer","285713:13"
  
  "Champhol","461034:2"
  
  "Station Palais","972811:0"
  </code></pre>
  
  <p>So if i want to find "Station Palais" (input), my output will be 972811:0. I am able to manipulate the string and create the overall program, I just need help with the csv.dictreader.I appreciate any assistance.</p>
  
  <p><strong>EDITED PART:</strong></p>
  
  <pre><code>    import csv
  
      def main():
          with open('anchor_summary2.csv', 'rb') as file_data:
          list_of_stuff = []
          reader = csv.DictReader(file_data, ("title", "value"))
              for i in reader:
                list_of_stuff.append(i)
              print list_of_stuff
  
      main()
  </code></pre>