human
get indices of element lambda condition.
assistant
Here is a Python function to get indices of element lambda condition

import numpy as np

def get_indices(a, condition):
    """
    :param a:
    :param condition:
    :return:
    """
    return [i for i, x in enumerate(a) if condition(x)]

# Enter the array
a = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])

# Calling the function
print((get_indices(a, lambda x: x > 5)))

#Example Output
# [5, 6, 7, 8, 9]

#Remember to inspect code for bugs.