def indices(a_list, val):
    """Returns a list containing the indices of val in the list.

    :param list|str a_list: List to be searched.
    :param object val: Item to be found in a_list
    :return: List of integer indexes of val in a_list
    :rtype: list
    """
    return [index for index, value in enumerate(a_list) if value == val]