title: SQLite3 problem in Python
body: <p>I am trying to do some basic iterating over a database in Python. I am using a table that already exists and iterating some int values into it. Pretty simple stuff but I can't seem to get it working. Here is my non-functional code.</p>
  
  <p>When I run the code it doesn't return any errors, but when I check the table in the database, nothing was written to the row in the  table called "numbers".</p>
  
  <pre><code>import sqlite3
  
  conn = sqlite3.connect("mydbase.sqlite")
  c = conn.cursor()
  
  for x in range(21):
    c.execute("""insert into numbers values (?)""", (x,))
  
  conn.commit()
  c.close()
  </code></pre>