title: sqlite3 remove brackets from printed data
body: <p>I have created a script that finds the last value in the first row of my database</p>
  
  <pre><code>import sqlite3
  global SerialNum
  conn = sqlite3.connect("MyFirstDB.db")
  conn.text_factory = str
  c = conn.cursor()
  SerialNum = c.execute('select Serial from BI4000 where Serial in (Select max(Serial) from BI4000)')
  print SerialNum
  conn.commtt()
  conn.close()
  </code></pre>
  
  <p>the program prints the result</p>
  
  <pre><code>[('00003',)]
  </code></pre>
  
  <p>which is the last result in the current database, all the data that will be entered into the final database will be serial numbers and so it will be in order.</p>
  
  <p>My question is can I remove all the quotations/brackets/comma as I wish to asign this value to a variable.</p>
  
  <p>The program that I wish to make is a testing system that adds new entries to the database, I wish to check what the last entry is in the database so the system can continue the entries from that point.</p>