title: How to create a program that verifies information inputted into the code against the csv information
body: <p>I'm relatively new to code and I have a school project where I have to create a voting system that verifies the user is who they state they are against a CSV file. So if they state their name is Brain Lodwog, it would check against the CSV to see if there is a Brain Lodwog, the same thing would be done with their address, here is my current code where it just asks for their name and address I just can't wrap my head around a verification method in Python:</p>
  <pre><code>    import csv
  from queue import Full
  
  MiddleName = ()
  FullNameValidate = []
  AdressValidate = []
  
  
  
  data =[]
  with open (&quot;Electoral Roll.csv&quot;) as csvfile:
      reader = csv.DictReader(csvfile)
  
  while FullNameValidate == []:
  
      answer = input (&quot;Have you voted before Yes or No?: &quot;)
  
      if answer ==&quot;Yes&quot;: 
          print (&quot; You have already voted, you can not vote twice.&quot;)
      elif answer == &quot;No&quot; :
          FirstName = input(&quot;Enter in your first name?: &quot;) 
      MiddleNameQuestion = input(&quot; Do you have a Middle Name? Yes or No: &quot;)
      if MiddleNameQuestion == &quot;Yes&quot;:
          MiddleName = input (&quot; What is your middle name? &quot;)
      elif MiddleNameQuestion == &quot;No &quot;:
          ( &quot;Please move on to the next Section: &quot;)
          
      Surname = input(&quot; What is your surname?: &quot;)
  
      if MiddleName !=():
          FullName = FirstName +' '+ MiddleName + ' '+ Surname
      elif MiddleName == ():
          FullName = FirstName + ' ' + Surname 
  
      if FullName !=():
          FullNameValidate = input(&quot;is this your full name ?: &quot; + FullName + &quot; Yes or No: &quot; )
  
      if FullNameValidate == 'Yes':
       continue 
              
  while AdressValidate == []:
          HouseNumber = input( &quot; What is your House Number? : &quot;)
          StreetName = input ( &quot;What street do you live on? : &quot;)
          Suburb = input ( &quot; What suburb do you live in? : &quot;)
          Postcode = input ( &quot; what is your 4 number postcode? :&quot;)
          FullAdress = HouseNumber + ' '+ StreetName + ' ' +Suburb+ &quot; &quot; +Postcode 
          if FullName !=():
           AdressValidate = input(&quot;is this your full adress?: &quot; + FullAdress +  &quot; Yes or No: &quot;)
          if AdressValidate == 'Yes':
              continue 
      ```
  
  Any sort of help would be appreciated, Thank you in advance and I hope I made my point clear.  
  </code></pre>