Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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!

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Demystifying Databases A Hands On Guide For Database Management

Authors: Shiva Sukula

1st Edition

8170005345, 978-8170005346

More Books

Students also viewed these Databases questions

Question

6. Explain the strengths of a dialectical approach.

Answered: 1 week ago