Question: complete the python program below that does the following: 1 . prompts the user to input a series of positive numbers 2 . the entry

complete the python program below that does the following:
1. prompts the user to input a series of positive numbers
2. the entry of a negative number or zero (0) stops the input loop
3. the total of the numbers is displayed when the loop ends
4. think a priming input statement
'''
# ====================================== initialize accumulator
# ================================= start the loop
while num>0:
total+=num
# ============================== print results
print(f'the sum of the numbers input is {total:,.2f}')

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!