title: How to check if sqlite table empty extract result
body: <p>I am checking if a table in my database is empty. I cannot get the value that the sql statement returns to be usable.</p>
  
  <p>The section of the code is as follows :</p>
  
  <pre><code>with sqlite3.connect("BENSBIGDATABASE.db") as db:
      cursor = db.cursor()
      cursor.execute('''SELECT COUNT(*) from login ''')
      result=cursor.fetchall()
      print(result)
      if result == 0 :
          print("is 0")
      else :
          print("is not 0 ")
  </code></pre>
  
  <p>The output that the code is producing is :</p>
  
  <pre><code>[(0,)]
  is not 0 
  </code></pre>
  
  <p>I am returning the correct result however the if statement is not working underneath. From what I understand this is because of the brackets around it?</p>