Question: Please use python 3.7.0 to write problem28 and30.And use functiondef please. thanks! Enter a word: TRY Enter a positive integer: 5 5! is 120 TRY
Enter a word: TRY Enter a positive integer: 5 5! is 120 TRY is a Qwerty word. FIGURE 4.4 Possible outcome of Exercise 27. FIGURE 4.5 Possible outcome of Exercise 28 28. Factorial The factorial of a positive integer n (written n!) is the product 1.2.3 n Write a program that asks the user to input a positive integer and then calculates and displays the factorial of the number. The program should call a function named ge 4.1 Functions, Part 1.179 that gets the input and guarantees that the input is a positive integer. Also, the factor ial of the number input should be calculated with a function named fact. See Fig. 4.5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
