Question: Write a Python program to do the following: Ask the user to enter as many integers from 1 to 10 as he/she wants. Store the

Write a Python program to do the following:

Ask the user to enter as many integers from 1 to 10 as he/she wants. Store the integers entered by the user in a list. Every time after the user has entered an integer, use a yes/no type question to ask whether he/she wants to enter another one.

Display the list.

Calculate and display the average of the integers in the list.

If the average is higher than 7, subtract 1 from every number in the list. Display the modified list.

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!