请编写一段Python代码，计算给定列表中所有偶数的和，并输出结果。
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
```
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
total = 0
for num in numbers:
    if num % 2 == 0:
        total += num
print(total)
```