title: Why when I tried to insert some values in the table with python the output it’s none?
body: <p>I have this code</p>
  
  <pre><code>import MySQLdb
  db = MySQLdb.connect("localhost", "root", "password", "db_name")
  cursor = db.cursor()
  
  cursor.execute("INSERT INTO directedEdges (`originLbl`, `targetLbl`) VALUES 
                ('user1@enron.com', 'user2@enron.com' )")
  data = cursor.fetchone()
  print data
  </code></pre>
  
  <p>but when I execute this script the output is None and and I can't insert the values in the db. Why ?</p>
  
  <p>In a first moment I thought it was a problem whit db connection, but if I execute</p>
  
  <pre><code>import MySQLdb
  db = MySQLdb.connect("localhost", "root", "password", "db_name")
  cursor = db.cursor()
  cursor.execute("SELECT * FROM directedEdges")
  data = cursor.fetchone()
  print data
  </code></pre>
  
  <p>I see the content of the table directedEdges. </p>
  
  <p>Thanks</p>