Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access with AI-Powered 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