I've prepared a list in Python, and would like to use that list to filter the items I query from a SQL database.
I have a query like this:
sql_query = "
SELECT item
FROM database
WHERE item IN (*list*) "
And want to place a list that I prepared earlier in the script in the place of list. How would I do this? %s and %d don't seem to do it.