So I got a homework assignment for my Python class that I simply cannot figure out how to do.
Essentially our professor wants us to break down the "sorted" built-in Python function and do it ourself while using else,elif,and if statements.
We are required to first ask the user to input 4 numbers and then sort and print them in ascending order using else,elif, and if while we are not allowed to use the built-in "sorted" function.
Here's what I need it to do:
Example output:
>>> sort4()
Please enter a number: 1.1
Please enter a number: -7.3
Please enter a number: 32
Please enter a number: 3.14
Your numbers in ascending order are: -7.3 1.1 3.14 32
If there's anything that can be done to help or assist me, please do so ASAP. Thanks!