import sqlite3 conn = sqlite3.connect('dbname') c = conn.cursor() c.execute('''CREATE TABLE songs ( song text, artist text, year integer)''')