I'm learning SQLite and have been trying to create a string that stores values and retrieves rows, but I get an error "execute() takes no keyword arguments." This is the way I referenced the database:
import sqlite3
dbb = sqlite3.connect('finance.db')
db = dbb.cursor()
username = request.form.get("username")
#query database for username
rows = db.execute("SELECT * FROM users WHERE username = :username", \
username=username)
UPDATE
I misrepresented my parameters. I used the qmarks notation mentioned in the accepted answer below to reference table rows