title: Extract integer from list using python
body: <p>Extract integer from list</p>
  
  <pre><code>test = query_database("SELECT SUM(try) FROM tries where number=?", (nb,))
  print test 
  </code></pre>
  
  <p>The result i got is <strong>[(100,)]</strong></p>
  
  <p>And when i extract value from list as :</p>
  
  <pre><code>for i in test:
        print i
  </code></pre>
  
  <p>the result is <strong>(100,)</strong></p>
  
  <p>How to extract only <strong>100</strong> as integer with no parenthesis and commas ?</p>