title: get rows from csv by matching to Dictionary keys python
body: <p>I am trying to return an item from all rows in a CSV that contain a match to each key in a dictionary using python 2.7.</p>
  
  <p>I have tried the following code</p>
  
  <pre><code>with open(r"root\to\file", "r") as inFile:
      for k in myDict.keys():
          reader = csv.reader(inFile)
          result = [row[11] for row in reader if row[3] == k]
          print(result)  
  </code></pre>
  
  <p>as an output I get one successful list and then the correct number of empty lists.</p>
  
  <p>Can anyone tell me why it is only working for the first key?</p>
  
  <p>Thanks in advance</p>