Question: For this interactive assignment, you will continue to utilize loops and functions and write a Python program that asks the user for an integer (number)

For this interactive assignment, you will continue to utilize loops and functions and write a Python program that asks the user for an integer (number) greater than 1.

Once the user enters an integer, it should then allow the user to CHOOSE between the following two options:

If 1 is entered, a countdown from that number to zero is printed.

If 2 is entered, the factorial of the number is printed.

If the user inputs a number less than 1, your program should display a message informing the user that the program only accepts numbers greater than 1.

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!