python - Find factorial of each element in a list and multiply them -


i have calculate factorial of each element in list, multiply them, , save result in integer variable. have factorial function, don't know how these manipulations list.

how about?

product = 1 item in some_list:     product *= factorial(item) 

Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -