Question: Questi n 1 0 The following program is supposed to sum all of the numbers entered by the user. What line of code must be

Questin 10
The following program is supposed to sum all of the numbers entered by the user. What line of code must be inserted in the blank so that the program will achieve this goal?
total =0.0
inputstr = input("Enter a value: ")
while inputstr, !=,"n :
value = float(inputstr)
inputstr = input("Enter a value: ")
value = value + inputStr
value = value + total
total = total + inputstr
total = total + value
 Questin 10 The following program is supposed to sum all of

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!