def mutiply_values(iterable, indexes):
    """Mutliplies the values of the iterable given by a list of indexes"""

    indexes = set(indexes)
    product = 1

    for i, x in enumerate(iterable):
        if i in indexes:
            product *= x
            indexes.remove(i)

        if len(indexes) == 0:
            break

    return product