Create a function doubleFactorial(n) that takes an odd integer and returns the product
Create a function doubleFactorial(n) that takes an odd integer and returns the product of all odd values upto the value n (where n=2k-l).
5 views
1 Answers
def doubleFactorial(num):
product = 1
i = 0
k = 0
while k k = 2*i+l product * = k i += 1 return product
5 views
Answered