title: How to get value from Cursor execution result Python
body: <p>I have a sqllite database in which the field dad_mmsi is created without a type:</p>
  
  <pre><code>c.execute('''CREATE TABLE IF NOT EXISTS AIS_anoniem
               (dad_mmsi, dad_navstatus......)'''')
  </code></pre>
  
  <p>when i fetch the top result;</p>
  
  <pre><code>c.execute('SELECT DISTINCT dad_mmsi FROM AIS')
  print c.fetchall()[0]
  </code></pre>
  
  <p>it prints: </p>
  
  <pre><code>(u'456000001',)
  </code></pre>
  
  <p>which is not the same as what i put in, because it is converted to a tuple. </p>
  
  <p>EDIT: since it is a tuple i need to access the index of the value i want:</p>
  
  <pre><code> print c.fetchall()[0][0] == '456000001'
  </code></pre>
  
  <p>gives me:</p>
  
  <pre><code> 'true' 
  </code></pre>