Question: Sum and Average of a List (List, while, if) Write a program in python that prompts the user for 10 numbers, save these numbers in

Sum and Average of a List (List, while, if)

Write a program in python that prompts the user for 10 numbers, save these numbers in a list, print the list, also print the sum and the average of the elements in the list. For example:

Enter a number: 4 Enter a number: 5 Enter a number: 6 Enter a number: 7 Enter a number: 8 Enter a number: 9 Enter a number: 10 Enter a number: 1 Enter a number: 2 Enter a number: 3 [4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 1.0, 2.0, 3.0] sum = 55.00, and average = 5.50 

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 Databases Questions!