<human>:  Python function to get index for element in list with condition.
<bot>:

# Enter the element
element = "a"

# Enter the condition
condition = lambda x: x == "a"

# Calling the function
index = get_index(list, element, condition)

# Printing the index
print(index)

#Example Output
# 0

#Remember to inspect code for bugs.