Question: Using python Write a program that asks for integer values until the user enters 0. Once the user has finished entering values, display the average
Using python

Write a program that asks for integer values until the user enters 0. Once the user has finished entering values, display the average of the positive values that were entered and the average of the negative values that were entered. DO NOT make any assumptions regarding the data that will be entered. If you are not able to calculate an average, state that no values of that type were entered. Print out the average with 2 places after the decimal point. For example: Enter a value: 20 Enter a value: -20 Enter a value: 30 Enter a value: 0 Average of positive values: 25.00 Average of negative values: -20.00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
