title: compare output between sqlite and list
body: <p>The problem is when i want to compare to list from sqlite and a list</p>
  
  <pre><code>date_in=("25/08/2018")
  date_modified=datetime.strptime(date_in, "%d/%m/%Y")
  date=date_modified.date()
  
  consulta.execute("SELECT hora FROM citas WHERE fecha=(?)",(date,))
  
  schedule_appointments1 = consulta.fetchall()
  
  schedule_appointments=list(schedule_appointments1)
  
  schedule=["10:00","10:30","11:00","11:30","12:00","12:30"]
  
  for x in schedule_appointments:
      for y in schedule:
          if x==y:
              print("ok")
              schedule.remove(x)
  </code></pre>
  
  <p>when I run, nothing happend, so "x" not equal "y" 
  if I print one bye one </p>
  
  <pre><code>for x in schedule_appointments:
      for y in schedule:
          print("x= ", x, type(x))
          print("y= ",y, type(y))
          if x==y:
              print("ok")
  </code></pre>
  
  <p>the result if</p>
  
  <pre><code>x=  ('12:00',) class 'tuple'
  y=  11:00 class 'str'
  x=  ('11:00',) class 'tuple'
  y=  11:00 class 'str'
  </code></pre>
  
  <p>I see one is tuple and other is str but</p>
  
  <p><code>schedule_appointments=list(schedule_appointments1)</code> is a list and <code>schedule=["11:00"]</code> is a list so I dont understand, </p>
  
  <p>I need that happened </p>
  
  <pre><code>if x==y:
      print("ok")
  </code></pre>
  
  <p>in resumen I want of the one list remove what the database gives me</p>
  
  <p>and other petition, can I do that why numpy? how do I do that?</p>