Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 exampleStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started