PyDocs

Nav

Numeric and Mathematical Modules

prod

math

function · Added in 3.8
  • prod(iterable, *, start=1)
Calculate the product of all the elements in the input iterable.

The default start value for the product is 1.

When the iterable is empty, return the start value.  This function is
intended specifically for use with numeric values and may reject
non-numeric types.
0 Examples
No examples for math/prod.
See Also
No see-alsos for math/prod
0 Notes
No notes for prod