
    Write a function that calculates the total score from learning modules where both the module number is even and the student's assessment score is even, helping identify patterns in performance across structured course segments. The function should analyze a list of assessment scores, where each score corresponds to an even-numbered learning module, and sum only those scores that meet both criteria.
    

    
def sum_even_and_even_index(arr):
    """
    Write a function that calculates the total score from learning modules where both the module number is even and the student's assessment score is even, helping identify patterns in performance across structured course segments. The function should analyze a list of assessment scores, where each score corresponds to an even-numbered learning module, and sum only those scores that meet both criteria.
    

    """
def sum_even_and_even_index(arr):
    """
    Write a function that calculates the total score from learning modules where both the module number is even and the student's assessment score is even, helping identify patterns in performance across structured course segments. The function should analyze a list of assessment scores, where each score corresponds to an even-numbered learning module, and sum only those scores that meet both criteria.
    

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