
    Write a function that calculates the total in-class participation score by summing only the even-valued participation scores that were recorded during classroom sessions (even-positioned entries). The function should process a sequential list of student engagement metrics where even positions represent in-class participation scores and odd positions represent homework completion scores.
    

    
def sum_even_and_even_index(arr):
    """
    Write a function that calculates the total in-class participation score by summing only the even-valued participation scores that were recorded during classroom sessions (even-positioned entries). The function should process a sequential list of student engagement metrics where even positions represent in-class participation scores and odd positions represent homework completion scores.
    

    """
def sum_even_and_even_index(arr):
    """
    Write a function that calculates the total in-class participation score by summing only the even-valued participation scores that were recorded during classroom sessions (even-positioned entries). The function should process a sequential list of student engagement metrics where even positions represent in-class participation scores and odd positions represent homework completion scores.
    

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