title: checking if values from list in MySQL column Python
body: <p>I'm new to SQL (MySQL) and I was wondering if I can do following using Python: 
  I have a list in python with some numbers and I have a column which contains numbers in MySQL, so I need to check if the number from the Python list exists in a column of Data base. 
  If yes return True, if no return False. </p>
  
  <pre><code>import  pyodbc as SQL 
  
  con = SQL.connect('Driver = {MySQL}; Server=localhost; 
  Database=Items)
  
  items =['11','12', '13', '14']
  for i in items:
  cur.execute("select * from ItemNumber", (items[i]))
  item = cur.fetchall()
  if not item:
     return False   
  else:
     return True
  </code></pre>