def remove_selected_from_list(the_list, selected_indexes):
    """
    Removes selected elements from the list.
    :param the_list:
    :param selected_indexes: list of indexes to be removed from the list
    :return: processed list
    """
    doc_len = len(the_list)
    tmp = []
    for i in range(0, doc_len):
        if i not in selected_indexes:
            tmp.append(the_list[i])
    return tmp
