# Connect to the database conn = sqlite3.connect('example.db') cursor = conn.cursor() To execute a query, use the execute() method:
CREATE TABLE users ( id INTEGER PRIMARY KEY, name TEXT NOT NULL, email TEXT NOT NULL ); Insert some data:
import sqlite3