Answered step by step
Verified Expert Solution
Link Copied!

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,

image text in transcribeduse 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Basics Computer EngineeringInformation Warehouse Basics From Science

Authors: Odiljon Jakbarov ,Anvarkhan Majidov

1st Edition

620675183X, 978-6206751830

More Books

Students also viewed these Databases questions

Question

Avoid easy conflict-reducing techniques.

Answered: 1 week ago

Question

Effective Delivery Effective

Answered: 1 week ago