title: comparing user's input to a list in Python
body: <p>how would I check if something is not in a list?
  this is my current code:</p>
  
  <pre><code>for line not in line: open("drivers_details.txt"):
                 if reg not in line:
                    name=input("what is your name?\n")
                    address=input("what is your address\n")
                    print (reg,name,address,"%0.2f"%average_time,"MPH")
  </code></pre>
  
  <p>(I tried to use "not in" but it didn't work)</p>