L is a list of real numbers that is given to you: the starter code reads it from a single line of space-separated numbers. You have to sort this list in descending order and store the sorted list in a variable called sorted_L.
Input
A single line holding one or more real numbers separated by single spaces. The starter code turns them into the list L of floats for you.
Output
Nothing has to be printed. Store the descending-order list in sorted_L; that variable is what gets graded.
Example
For the input
1 4 3 2 5
L is [1.0, 4.0, 3.0, 2.0, 5.0] and sorted_L must be [5.0, 4.0, 3.0, 2.0, 1.0].
The input is read for you. Assign the answers to sorted_L.
You do not need to print anything — the values you assign to those names are what gets checked, in that order.
Input
1 4 3 2 5
Output
[5.0, 4.0, 3.0, 2.0, 1.0]