import sqlite3

conn = sqlite3.connect('example.db')
cursor = conn.cursor()

username = "user"
password = "pass"

cursor.execute("SELECT * FROM users WHERE username = ? AND password = ?", (username, password))
results = cursor.fetchall()