Question: Python: Write a program sumAll.py that prompts the user to enter numbers, one per line, ending with a line containing 0, and keep a running
Python:
Write a program sumAll.py that prompts the user to enter numbers, one per line, ending with a line containing 0, and keep a running sum of the numbers. Only print out the sum after all the numbers are entered (at least in your final version). Do not create a list! Each time you read in a number, you can immediately use it for your sum, and then be done with the number just entered.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
