Solve problem "The number of even elements of the sequence" online - Learn Python 3 - Snakify

Problem «The number of even elements of the sequence» (Medium)


Statement

Determine the number of even 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
2
1
4
0
2
1
3
5
7
9
1
3
5
7
9
0
0
2
4
0
2
7883
0
0
0
0
1
2
3
4
5
6
7
0
3
1
2
3
4
0
5
6
7
0
8
9
0
0
2
5
3
6
7
4
2
4
5
6
7
4
3
4
6
7
4
5
7
8
4
4
3
6
3
7
5
5
4
3
5
0
14
1
0
2
0
3
0
0
88
69
61
66
16
39
56
97
57
84
13
84
63
26
68
50
34
68
67
33
88
89
8
35
77
22
57
43
12
92
55
45
64
86
37
65
89
10
83
21
78
19
62
28
79
48
54
7
51
30
57
43
13
24
91
99
97
10
9
25
60
37
76
33
11
43
79
39
8
95
61
52
6
15
42
5
26
83
51
41
70
48
100
13
49
20
39
7
70
75
3
29
62
47
47
99
8
73
1
78
0
42