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

The sum of the sequence


Statement

Determine the sum of all elements in the sequence, ending with the number 0.
Advertising by Google, may be based on your interests

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

# Read an integer:
# a = int(input())
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Input:
1
7
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Output:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Saved solutions

Tests

InputCorrect answer
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