Condition in a loop over a list

sum of the even numbers in [3, 4, 7, 8] = 12

You can also choose a level by clicking its number.

About the course

Description
The loop goes through the list and adds up or counts only the elements that meet the condition
More information
The examples are in Python. Indentation determines what belongs to a loop or a condition.
Sample question
sum of the even numbers in [3, 4, 7, 8] = 12
Author
Jiří Preisler
Version
1.0