title: SQLite and Python, getting just text value from table
body: <p>I´m trying to get a clean output value from a sqlite table but not luck so far. The output value has , ' and () on it.</p>
  
  <pre><code>&gt;&gt;&gt; import sqlite3
  
  &gt;&gt;&gt; db = sqlite3.connect('C:\\Users\\userRock\\Desktop\\gen_profile.sqlite')
  &gt;&gt;&gt; cur = db.cursor()
  
  &gt;&gt;&gt; cur.execute (''' CREATE TABLE user (id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT) ''')
  &lt;sqlite3.Cursor object at 0x002E0EE0&gt;
  &gt;&gt;&gt; db.commit()
  
  &gt;&gt;&gt; cur.execute (''' INSERT INTO user(name) VALUES ('John'),('James') ''')
  &lt;sqlite3.Cursor object at 0x002E0EE0&gt;
  &gt;&gt;&gt; db.commit()
  
  &gt;&gt;&gt; cur.execute (''' SELECT name FROM user ORDER BY RANDOM() LIMIT 1 ''')
  &lt;sqlite3.Cursor object at 0x002E0EE0&gt;
  
  &gt;&gt;&gt; text = cur.fetchone()
  &gt;&gt;&gt; print (text)
  ('James',)
  &gt;&gt;&gt;
  </code></pre>
  
  <p>The output is ('James,) but I'd like to get James, just the name without symbols. How could I do that?</p>
  
  <p>Thank you very much</p>