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
Post a Comment