title: Converting tuple to int in python
body: <p>I have a query which returns a tuple and I'm trying to convert the first value from that tuple to a int but it always gives me this error: 
  <code>TypeError: int() argument must be a string, a bytes-like object or a number, not 'tuple'</code>     </p>
  
  <p>I don't understand why it's doing this because the returned values looks like this: <code>[(25,)]</code></p>
  
  <p>Here is the code:</p>
  
  <pre><code>cursor.execute("SELECT temp FROM temperatures WHERE datetimetest = ?", [datenow])
      currentTemp = cursor.fetchall()
      print(currentTemp) # this gives me [(25,)]
      convertedTemp = int(currentTemp[0])
  </code></pre>