human
finding index of multiple items in a list
assistant
Here is some code to finding the index of elements containing substring 'how' and 'what' in a list of strings 'myList'.

[i for i, j in enumerate(myList) if 'how' in j.lower() or 'what' in j.lower()]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.