def tupleProduct(shapeTuple):
    """
    Calculate the product of elements in a tuple. Used for calculating total shape.
    
    Parameters
    ----------
    shapeTuple : iterable of int or float
        The shape-like object we are asking for total shape(product).
    
    Returns
    -------
    int/float
        The product of elements in shapeTuple.
    """
    res = 1
    for x in shapeTuple:
        res *= x
    return res