Write a python program that does the following asks the


Python Programming:

Write a Python program that does the following:

asks the user to enter integers - they can indicate they are finished by typing DONE

print the following:

number of positive integers

number of negative integers

sum of all entered numbers

average of all entered numbers (displayed with 1 digit to the right of the decimal)

Be sure to label all of your output and format it appropriately.

Be sure to think about all of the test cases for your application - what if the user enters DONE immediately, for example?

Bonus +2:

Provide a function called getValidInput. It accepts NO parameters.

It should continually ask the user to enter a number until they enter a valid integer (without letters or punctuation or spaces in their entry). It should RETURN a valid integer.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a python program that does the following asks the
Reference No:- TGS02907023

Expected delivery within 24 Hours