title: Searching in csv files
body: <p>How do I search between the first two commas in a csv file?
  E.G:
  CSV FILE:</p>
  
  <pre><code>    name, surname, age , gender
  </code></pre>
  
  <p>How do i only search for the first two, name and surname with the users input?</p>
  
  <p>this is what i have. I am looking for the user to search only by a name or surname:</p>
  
  <pre><code>    searchfile = open("python.csv", "r")        
      a=input()
      for line in file: 
          if a in line:
              print(line)
  </code></pre>
  
  <p>When i do this the user can enter anything that is in the file and it will print the line. I only want to search the first two commas which are name and surname. If the input is not there then reject.</p>