Question: Problem 2 In this problem create a facotrial calculator. As you may recall, the factorial of a number is every number from 1 through that

Problem 2 In this problem create a facotrial calculator. As you may recall, the factorial of a number is every number from 1
through that number being multiplied. For example, 5! or 5 factorial,
51**2**3**4**5=120
Thus create a function that given an integer from 1 through infinity it will generate the output to look like the example above.
The function should be named fact() thus, if i input fact(3) the output should be: 31**2**3=6 There should also be a
catch, which is if a user enters 0 into the function the result should be 1(i.e.01). If the use enters a negative number the
user should be prompted with a "Please enter a positive integer and run code again" message. The function must use a while
loop. in python
 Problem 2 In this problem create a facotrial calculator. As you

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!