How do I find the indices of the first two elements in a list that are any of the elements in another list?
For example:
story = ['a', 'b', 'c', 'd', 'b', 'c', 'c']
elementsToCheck = ['a', 'c', 'f', 'h']
In this case, the desired output is a list indices = [0,2] for strings 'a' and 'c'.