I have two lists. I want to find the indices of elements present in list1 in list2. Is there any way to get the indices of several elements in a numpy array or list at once?
For example:
c = [1, 2, 3]
f = [ 9, 11, 1, 13, 4, 5, 3, 12, 14, 10, 2, 7, 8, 6]
output should be [2,6,10]