import sqlite3 conn = sqlite3.connect("quotes.db") c = conn.cursor() quotes = [ ("Strive not to be a success, but rather to be of value.", "Albert Einstein"), ("I find that the harder I work, the more luck I seem to have.", "Thomas Jefferson") ] c.execute(""" CREATE TABLE IF NOT EXISTS quotes ( id INTEGER PRIMARY KEY AUTOINCREMENT, quote TEXT NOT NULL, author TEXT NOT NULL, delivered INTEGER DEFAULT 0 ) """) conn.commit() for quote, author in quotes: c.execute("INSERT INTO quotes (quote, author) VALUES (?, ?)", (quote, author)) conn.commit() conn.close()