Question: Write a Python program that accepts integer numbers from the users and stores each input in an array. The user will enter a negative number

Write a Python program that accepts integer numbers from the users and stores each input in an array. The user will enter a negative number when completed. This program then calculates the average value and displays the following:
Total number of inputs entered by the userThe sum of all inputsThe average number
For example, the user enters 5,7,3,4, and 6. The expected output:
Total number of inputs: 5The sum of all inputs: 25The average number: 5

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!