Question: use python only Write a program that repeatedly asks the user to enter numbers (or blank to exit). After the user enters a blank line,
use python only
Write a program that repeatedly asks the user to enter numbers (or blank to exit). After the user enters a blank line, the numbers will be sorted into ascending order and displayed as a sorted list. The program will also calculate and display the median value. Notes: - You can assume all the input numbers will be integer values - If the list has an odd number of items, then the median is the middle value in the sorted list. - If the list has an even number of items, then the median is the average of the middle two values. - Printing a list will produce the output in the correct format (e.g., [1,2,3,4]) - The output must be in the format shown in the example, including the format of the prompt, and all spaces and punctuation. For example
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
