Return the sum of products of values from two iterables p and q. Roughly equivalent to: sum(map(operator.mul, p, q, strict=True)) For float and mixed int/float inputs, the intermediate products and sums are computed with extended precision.
math/sumprod
sumprod