Answered step by step
Verified Expert Solution
Question
1 Approved Answer
can someone help me correct with this Spyder python. I don't know where do I get wrong Assume that someone has collected a set of
can someone help me correct with this Spyder python. I don't know where do I get wrong
Assume that someone has collected a set of measurements and wants some statistical data about them. Write a program that asks a user for measurements and prints the average, the maximum, and the minimum measurement. Users should enter data elements one at a time from the keyboard. All data elements should be positive numbers. The user should be allowed to enter as many measurements as they want and should signify the end of the list by entering a negative value. The negative value should not be processed as part of the data set - it simply indicates that the user has finished entering measurements. Note: Do not use any containers (e.g. list/tuple/array) to store the measurements. Do not use the built-in statistics functions min(), max(). You should implement a loop and do data input/analysis inside the loop. print("Enter numbers: ",1,3,5,4,6) num = float(input()) maxVal = num minVal = num total = num count = 1 while(num > 0): num = float(input()). if(num num): minVal = num total += num print("Maximum =",maxVal) print("Miniimum =",minval) print("Average =",(total/count))||Step 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