title: im trying to find a way to prevent duplicate entry into sql table via python
body: <p>i'm trying to find a way to prevent duplicate entry into sql table via python. any idea how?</p>
  
  <pre><code>input_bp_description = input("please enter category")
  
  sql_scripts = "INSERT INTO bp(systolic, diastolic, description) values(?,?,?)"
  data = [input_bp_systolic, input_bp_diastolic, input_bp_description ]
  (SELECT systolic FROM bp WHERE input_bp_systolic);
  #ideally there should be a check here to prevent the enry of the same systolic!
  cur.execute(sql_scripts, data)
  con.commit()
  </code></pre>