Question: pls write a python program, input is (x,n) and output is (x)n = x(x-1)(x-2)(x-3)......(x-n+1) the example shows above. >>> lowerFactorial(4, 2) 4 * 3 12

 pls write a python program, input is (x,n) and output is

pls write a python program, input is (x,n) and output is (x)n = x(x-1)(x-2)(x-3)......(x-n+1)

the example shows above.

>>> lowerFactorial(4, 2) 4 * 3 12 >>> lowerFactorial(34, 3) 34 * 33 * 32 35904 >>> lowerFactorial(0, 45) x >> lowerFactorial(4, -2) is None no True

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!