Question

Please use Python 3 4). Write a program that asks the user to enter 10 numbers....

Please use Python 3

4). Write a program that asks the user to enter 10 numbers. The program should store the numbers in a list and then display the following data:

• The lowest number in the list •

The highest number in the list

•The total of the numbers in the list

• The average of the numbers in the list

  Sample input & output:

(Prompt) Enter Number 1: (User enter) 4

(Prompt) Enter Number 2: (User enter) 7

(Prompt) Enter Number 3: (User enter) 3

(Prompt) Enter Number 4: (User enter) 8

(Prompt) Enter Number 5: (User enter) 4

(Prompt) Enter Number 6: (User enter) 8

(Prompt) Enter Number 7: (User enter) 3

(Prompt) Enter Number 8: (User enter) 6

(Prompt) Enter Number 9: (User enter) 12

(Prompt) Enter Number 10: (User enter) 6

(Output) The lowest number in the list is 3.0

(Output) The highest number in the list is 12.0

(Output) The sum of the numbers in the list is 61.0

(Output) The average of the numbers in the list is 6.1

Homework Answers

Answer #1
numbers = []
for i in range(1, 11):
    numbers.append(float(input("Enter Number {}: ".format(i))))
print("The lowest number in the list is", min(numbers))
print("The highest number in the list is", max(numbers))
print("The sum of the numbers in the list is", sum(numbers))
print("The average of the numbers in the list is", sum(numbers) / len(numbers))

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Design a program that asks user to enter any three numbers. The program should display the...
Design a program that asks user to enter any three numbers. The program should display the three numbers in ascending order. using python code please
DESIGN A FLOWCHART IN FLOWGORITHM Number Analysis Program Design a program that asks the user to...
DESIGN A FLOWCHART IN FLOWGORITHM Number Analysis Program Design a program that asks the user to enter a series of 20 numbers. The program should store the numbers in an array and then display the following data: The lowest number in the array. The highest number in the array. The total of the numbers in the array. The average of the numbers in the array. PLEASE AND THANK YOU
PLease code a C++ program that prompts a user to enter 10 numbers. this program should...
PLease code a C++ program that prompts a user to enter 10 numbers. this program should read the numbers into an array and find the smallest number in the list, the largest numbers in the list the sum of the 10 numbers and the average of the 10 numbers please use file i/o and input measures for Handling Errors in C++ When Opening a File
Question1: Write a Python Program that asks for the grades of 5 quizzes and then prints...
Question1: Write a Python Program that asks for the grades of 5 quizzes and then prints the highest grade. [6 Marks] Question2: Write a Python Program that does the following tasks. [8 Marks] Create an empty list Ask the user for 5 positive numbers and append them to the list Find and print the sum of all the numbers in the list Delete the last element from the list and then print the list Question3: Consider you have the following...
IN PYTHON : Write a program that asks the user for a number. Write the number...
IN PYTHON : Write a program that asks the user for a number. Write the number to a file called total.txt. Then ask the user for a second number. Write the new number on line 2 with the total for both numbers next to it separated by a comma. Then ask the user for a third number and do the same. Keep asking for numbers until the person puts in a zero to terminate the program. Close the file. Be...
Find the error in the following psuedocode // This program asks the user to enter a...
Find the error in the following psuedocode // This program asks the user to enter a number between 1 and 5 and validates the input. Declare Integer number // Get a number from the user. Display "Enter a number between 1 and 5." Input number // Make sure the number is between 1 and 5. While number < 1 AND number > 5 Display "ERROR: The number must be between 1 and 5. " Display "Enter a number between 1...
DESIGN A FLOWCHART IN FLOWGORITHM STEP BY STEP Number Analysis Program Design a program that asks...
DESIGN A FLOWCHART IN FLOWGORITHM STEP BY STEP Number Analysis Program Design a program that asks the user to enter a maximum of 20 numbers. The program should store the numbers in an array and then display the following data: -The lowest number in the array. -The highest number in the array. -The total of the numbers in the array. -The average of the numbers in the array. PLEASE AND THANK YOU
Please Write code in visual studio Roman Numeral Converter Write a program that asks the user...
Please Write code in visual studio Roman Numeral Converter Write a program that asks the user to enter a number within the range of 1 through 10. Use a switch statement to display the Roman numeral version of that number. Input Validation: Decide how the program should handle an input that is less then 1 or greater than 10.
Q :     Write a C++ program that asks the user to enter three integers and...
Q :     Write a C++ program that asks the user to enter three integers and then displays the largest one. Example : if the user enter ( 7, 2 ,5) the largest number will be 7 Or if user enter ( 2 , 5 , 7 ) the largest number will be 7 Or if user enter ( 7, 5 ,2) the largest number will be 7 In general it does not matter the order of the entered numbers...
Write a mips assembly language program that asks the user to enter and integer number and...
Write a mips assembly language program that asks the user to enter and integer number and read it. Then ask him to enter a bit position (between 0 and 31) and display the value of that bit.
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT