Question: 1. Write a Python program that prompts the user to input three numbers. The program should then output the numbers in ascending order. ***Do NOT

1. Write a Python program that prompts the user to input three numbers. The program should then output the numbers in ascending order.

***Do NOT use nested conditionals (nested-if). Use one if-elif statement (only one if but you can have multiple elif).

if

elif

elif

elif

....

2. Test and verify your program and it's output.

Try the following combinations for testing:

1, 2, 3

1, 3, 2

2, 1, 3

2, 3, 1

3, 2, 1

3, 1, 2

3, 1, 1

1, 1, 3

1, 3, 1

3, 1, 3

3, 3, 3

*** To read three numbers on one input line, use this code:

=========================================

a,b,c=input("Please input three integers:").split()

*************************************************************************************

OUTPUT:

- The bold text is the user's input.

*************************************************************************************

Please input three integers: 2 3 1 Three integer numbers in ascending order: 1 2 3

**********************************************************************

Please input three integers: 3 2 1 Three integer numbers in ascending order: 1 2 3

**********************************************************************

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!