def listfind(values, val):
    """
    Return all indices of a list corresponding to a value.

    :param list values:
        List to analyse.
    :param any val:
        Element to find in the list.
    :return: list
    """
    return [i for i in range(0, len(values)) if values[i] == val]