Finding the index of elements based on a condition using python list comprehension,[i for i in range(len(a)) if a[i] > 2]