
    Calculate the total number of electric delivery vehicles (represented by even-numbered IDs) that are operating during peak hours (represented by even-indexed time slots) to optimize fleet deployment efficiency. Given a list of vehicle IDs where even numbers represent electric vehicles, determine the sum of even-numbered IDs that appear at even-indexed positions in the list.
    

    
def sum_even_and_even_index(arr):
    """
    Calculate the total number of electric delivery vehicles (represented by even-numbered IDs) that are operating during peak hours (represented by even-indexed time slots) to optimize fleet deployment efficiency. Given a list of vehicle IDs where even numbers represent electric vehicles, determine the sum of even-numbered IDs that appear at even-indexed positions in the list.
    

    """
def sum_even_and_even_index(arr):
    """
    Calculate the total number of electric delivery vehicles (represented by even-numbered IDs) that are operating during peak hours (represented by even-indexed time slots) to optimize fleet deployment efficiency. Given a list of vehicle IDs where even numbers represent electric vehicles, determine the sum of even-numbered IDs that appear at even-indexed positions in the list.
    

    """
    i = 0
    sum = 0
    for i in range(0, len(arr), 2):
        if arr[i] % 2 == 0:
            sum += arr[i]
    return sum