Is There a Built-in Product() in Python? [Duplicate]
I've Been Looking Through a Tutorial and Book but I Can Find No Mention of a Built in Product Function I. E. of the Same Type as Sum(), but I Could Not Find...
I've been looking through a tutorial and book but I can find no mention of a built in product function i.e. of the same type as sum(), but I could not find anything such as prod().
Is the only way I could find the product of items in a list by importing the mul() operator?
4 Answers
Must Read
Pronouncement
Yes, that's right. Guido rejected the idea for a built-in prod() function because he thought it was rarely needed.