Question: Programming Exercise 3.9 Instructions sum.py 1 Edit the code below 2 Edit the program provided so that it receives a series of numbers from the

 Programming Exercise 3.9 Instructions sum.py 1 Edit the code below 2

Programming Exercise 3.9 Instructions sum.py 1 Edit the code below 2 Edit the program provided so that it receives a series of numbers from the user and allows the user to press the enter key to indicate that he or she is finished providing inputs. After the user presses the enter key, the program should print 3 theSum = 8.0 4 data = Input("Enter a number: 3 5 while data. 6 number - float(data) 7 thesum + number 8 dala - Input(Enter the next number: *) g print("The sum 15 thesun) 10 1. The sum of the numbers 2. The average of the numbers An example of the program input andi output is shown below. Enter a number on press Enter to quit: Enter a number or press Enter to quit: Enter a number or press Enter to quit: Enter a number or press Enter to quit: The sun is 50 The average jus 2.0 Grading When you have completed youn program, click the Submit button to record your score. to search 0 1 W 2

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!