Python: display first element of tuple in cursor
<p>I have the following code:</p>

<pre><code>conn = mysql.connector.connect(database='test', user='me', password='pwd')
cursor = conn.cursor()
query = ( "select id from T where project = 10" )
cursor.execute(query)
result = cursor.fetchall()
</code></pre>

<p>result is showing as:</p>

<pre><code>[(Decimal('476749'),), (Decimal('478045'),), (Decimal('479713'),)]
</code></pre>

<p>is it possible to show it as : <code>[476749, 478045, 479713]</code></p>