human
get index for element in list with condition.
assistant
Here is a Python function to get index for element in list with condition

import random

def get_index(list, element, condition):
    """Get index for element in list with condition"""
    for i in range(len(list)):
        if list[i] == element and condition(list[i]):
            return i
    return -1

# Enter the list
list = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]

# 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.