xxxxxxxxxx
myList = ['computer', 'programming', 'hello', 'world']
query = ['hello', 'world']
# iterate through the smallest list so it takes less time
for eachQ in query:
if eachQ in myList:
print("True, query found at index " + str(myList.index(eachQ)))
else:
print("False")