def dot_product(vector, weights):
    """ Returns the dot product of two equal length vectors

    Args:
        vector (list)
        weights(list)

    Returns:
        a float
    """
    return sum(elem * weight for elem, weight in zip(vector, weights))