def find_index(lst, key, value):
    """
    Given a list of dictionaries, [{key:value,},] return index of list with key
    and value.

    Parameters:
        lst (list): list to be searched for index
        key (immutable key): key to match
        value: value to match
    """
    for i, dic in enumerate(lst):
        if dic[key] == value:
            return i
    return -1