Answered step by step
Verified Expert Solution
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?
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 18Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started