Solve problem "The sum of the sequence" online - Learn Python 3 - Snakify

Problem «The sum of the sequence» (Medium)


Statement

Determine the sum of all elements in the sequence, ending with the number 0.

In all the problems input the data using input() and print the result using print().



Saved solutions

Tests

Input Correct answer Result
1
7
9
0
17
1
1
1
1
1
1
1
1
1
0
9
34
2345
2345
2345
2345
345
3
345
3
345
1
3
424
5
453
0
11341
7883
0
7883
0
0
1
2
3
4
5
6
7
0
28
1
2
3
4
0
10
0
0
1
0
1