title: How to test where a sqllite3 returns results or empty in Python?
body: <pre><code>cursor = self.conn.execute(query)
  
          for row in cursor:
              print("song:", row[0])
  </code></pre>
  
  <p>My goal is not to return query result, but to see whether the query return value or not. I don't see there is a way to test on the 'cursor' object. Ideally, I would want to see something like:</p>
  
  <p>This is in Python. </p>
  
  <pre><code> if cursor is Empty(None):
        print("no result")
    else:
       print("result founds")
  </code></pre>
  
  <p>Is there a way to do that?</p>