85. Python Program to Find the Sum of N Numbers
EasySum and count
Overview
The running total: start at 0, add inside the loop, print after it.
Problem Statement
The first line says how many numbers follow. Read that many whole numbers, one per line, and print their sum. For example, for 3 followed by 10, 20 and 5:
Sum: 35
Use input() with no prompt text: the tests type the input for you, and a prompt would end up in your output.
Input
One value per line, in this order. Example:
3
10
20
5
Output
The output for that example:
Sum: 35
The tests try 3 different inputs.