Write a function to find the sum of all even numbers in a list.
user
def sum_even(numbers):
    # Initialize sum
    total = 0

    # Iterate through the list
    for number in numbers:
        # Add even numbers to sum
        if number % 2 == 0:
            total += number

    # Return sum
    return total
assistant