title: Retrieving a specific row from a CSV file based on input
body: <p>At the moment I have a program which retrieves all of the information from the CSV file and outputs it like so:</p>
  
  <pre><code>['USER', 'PASS', 'INFO']
  ['example', 'pass', 'Apple']
  ['example1', 'pass1', 'Banana']
  ['example2', 'pass2', 'Strawberry']
  </code></pre>
  
  <p>With the code I'm using being: </p>
  
  <pre><code>import csv
  
  username = input("Username... ")
  
  with open('data.csv', 'rt') as f:
  reader = csv.reader(f)
  for row in reader:
      print(row)
  </code></pre>
  
  <p>What I'd like to do is check the user input against the usernames listed in the CSV file and if matches, print the corresponding INFO value. So if the username variable was example1, Banana would be printed. Is there any way of doing this, similar to MySQL etc.?</p>
  
  <p>Much appreciated!</p>