def prod_minus_index(arr, i):
    """
    Product of a list excluding the index i
    """
    total = 1
    counter = 0
    while counter < len(arr):
        if counter != i:
            total *= arr[counter]
        counter += 1
    return total