Question: What will be the output of the following code?import functoolsimport operatordef factorial ( n ) : Factorial of a number. > >
What will be the output of the following code?import functoolsimport operatordef factorialn: Factorial of a number. factorial factorial factorial factorialreturn functools.reduceoperatormul, range nif namemain:import doctestdoctest.testmodverboseTrueThis type of question contains radio buttons and checkboxes for selection of options. Use Tab for navigation and Enter or space to select the option.optionA items had failures: of in mainfactorialoptionB items had failures: of in mainfactorialoptionC passed and failedoptionDError on line
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
