
    Write a function that calculates the total of all even-valued sensor readings collected at scheduled inspection points during a transit vehicle's operation, where inspection points occur at even-numbered intervals in the sensor data sequence. This analysis helps identify patterns in maintenance metrics that could indicate potential vehicle issues requiring preventive maintenance.
    

    
def sum_even_and_even_index(arr):
    """
    Write a function that calculates the total of all even-valued sensor readings collected at scheduled inspection points during a transit vehicle's operation, where inspection points occur at even-numbered intervals in the sensor data sequence. This analysis helps identify patterns in maintenance metrics that could indicate potential vehicle issues requiring preventive maintenance.
    

    """
def sum_even_and_even_index(arr):
    """
    Write a function that calculates the total of all even-valued sensor readings collected at scheduled inspection points during a transit vehicle's operation, where inspection points occur at even-numbered intervals in the sensor data sequence. This analysis helps identify patterns in maintenance metrics that could indicate potential vehicle issues requiring preventive maintenance.
    

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