Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Is there a way I could slightly modify this code where the user could keep entering how many floating point numbers they wanted indefinitely, without

Is there a way I could slightly modify this code where the user could keep entering how many floating point numbers they wanted indefinitely, without predeterming like in line 1, until they hit the enter key instead of entering an additional number, basically making an exception?image text in transcribed

1 n int (input("Please enter the amount of numbers to input for finding their average 3 numbers 5 for i in range (0,n): 6 num int (input "Enter a floating point value numbers. append (num) avg sum numbers 10 print ("you entered values" format(len(numbers))) 11 print ("Total of the entered numbers sum (numbers)) 12 print ("Average of the entered numbers round (avg, 2)) 13 numbers. sort 14 print ("The numbers you entered in sorted order numbers 15 print ("The minimum number you entered min numbers 16 print ("The maximum number you entered max(numbers)) 17 18

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

Step: 3

blur-text-image

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

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions

Question

1.The difference between climate and weather?

Answered: 1 week ago

Question

1. What is Fog ?

Answered: 1 week ago

Question

How water vapour forms ?

Answered: 1 week ago

Question

What is Entrepreneur?

Answered: 1 week ago

Question

Which period is known as the chalolithic age ?

Answered: 1 week ago