<human>:  Write me a Python program to get the index of a value based on conditions.
<bot>:

# Enter the condition
condition = lambda x: x == value

# Calling the function
print((_getIndex(value, array, condition)))

#Example Output
# 9

#Remember to inspect code for bugs.