<human>:  Can you show me a Python function to find the first index of a list that validates a condition.
<bot>:

# Calling the function
print((first_index(list, lambda x: x == 7)))

#Example Output
# 2

#Remember to inspect code for bugs.