Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python 3 PROBLEM 4: Write another program that prompts for a list of numbers as above and at the end prints out the minimum, maximum

python 3 image text in transcribed
PROBLEM 4: Write another program that prompts for a list of numbers as above and at the end prints out the minimum, maximum and median of the numbers instead of the average. YOU ARE NOT ALLOWED TO USE THE MINIMUM, MAXIMUM or MEDIAN FUNCTIONS OF PYTHON FOR THIS ASSIGNMENT. You may use the Python sorted() function when calculating the median An example of output is the following Enter a number: 40 Enter a number: 50 Enter a number: twenty five Invalid input Enter a number: 70.8 Enter a number: done The minimum number is: 40 The maximum number is: 70.8 The median is 50 SOME HELPFUL INFORMATION: To create a new empty list call my list, simply write: my list=0 To add a new element (for example 3.14) to the list use the append as shown below: my list.append(3.14)

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

Step: 3

blur-text-image

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

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions