import sqlite3 conector = sqlite3.connect("database.db") cursor = conector.cursor() string = "Some interesting stuff" cursor.execute("SELECT * FROM table WHERE item = ?", [string])