blob: f64dac932af1eff60aa6f8a871d0555343e6fbb3 (
plain)
1
2
3
4
5
6
7
8
|
from typing import List
import os
import json
def sum_even_numbers(numbers: List[int]) -> int:
"""Given a list of integers, return the sum of all even numbers in the list."""
return sum(num for num in numbers if num % 2 == 0)
|