You would need to use the IN clause.. The SELECT statement will need to like something like this.
WHERE instance IN (‘Arrays’,’Logistics’)</pre>
Your python code should look something like this.
<pre>searchword = array(['Arrays','Logistics'])
for word in searchword:
cursor = conn.Execute(“SELECT idf FROM instance WHERE instance=(“+ word +”)”)