[Python] Find indices of elements in a list or array
There are many ways to find indices of a given list of elements in a big list. Some methods are slow if the list that you need to scan is huge, and some do not return indices in the correct order. You should be aware of different approaches so that you can use one of…