Question: Python Write a program that takes in a series of numbers from the user. 1. The program should ask the user if they want to

Python

Write a program that takes in a series of numbers from the user.

1. The program should ask the user if they want to enter a new number each time.

2. Create a function that will perform the action of prompting the user for the numbers

a. If the user enters 'y' then take a new number and enter it into a list.

b. If the user hits the enter key or any other key the program will output the following information:

a. Lowest number

b. Highest number

c. Average of the numbers

3. A third function will accept a list with the numbers and return the total values of the numbers

4. Your program should demonstrate the following coding concepts:

a. Functions that return values including 1 function that returns a list

b. 1 function must accept a list as an argument

c. Use the appropriate 'while' and 'for' loops

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!