Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Can someone please help me out. I am having trouble writing this program. It mus

ID: 3903455 • Letter: C

Question

Can someone please help me out. I am having trouble writing this program.

It must be written WITHOUT creating functions and must be written without using "True" and "break" in the While loops.

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.

Thank you for your help!

Explanation / Answer

numbers = []
status = 1
while status == 1:
number = int(input("Enter the number: "))
numbers.append(number)
choice = input("Do you want to continue (yes/no):")
if choice == "no":
status = 0
else:
status = 1
average = sum(numbers)/ len(numbers)
print("Average of the list", average)
if average > 7:
for i in range(len(numbers)):
numbers[i] = numbers[i] - 1
print(numbers)

**Comment for any further queries.