Question: Code in Python: Write a program that asks the user to enter 10 (positive) numbers. The program should then print the numbers in sorted order,
Code in Python:

Write a program that asks the user to enter 10 (positive) numbers. The program should then print the numbers in sorted order, from biggest to smallest. To do this, first write a function that takes a list and finds the largest element. It then 1) deletes that element from the list and 2) returns that element. Hint: You will need to store two variables in this function: the biggest number you've seen so far (remember to initially set this to 0), and its position. Then iterate over the list, and for each element, check if it's bigger than the biggest number you've seen so far. If it is, change botlh variables (remember to change BOTH)! So, in your main program, you'll have to keep calling this function (in a loop) until the list is emm
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
