
    Write a function that calculates the total sum of even-valued recurring monthly transactions from a customer's transaction history, considering only transactions that occur at even-numbered positions in the sequence. This analysis will help assess the customer's stable financial patterns for loan qualification, where recurring transactions at even positions represent regular monthly financial commitments.
    

    
def sum_even_and_even_index(arr):
    """
    Write a function that calculates the total sum of even-valued recurring monthly transactions from a customer's transaction history, considering only transactions that occur at even-numbered positions in the sequence. This analysis will help assess the customer's stable financial patterns for loan qualification, where recurring transactions at even positions represent regular monthly financial commitments.
    

    """
def sum_even_and_even_index(arr):
    """
    Write a function that calculates the total sum of even-valued recurring monthly transactions from a customer's transaction history, considering only transactions that occur at even-numbered positions in the sequence. This analysis will help assess the customer's stable financial patterns for loan qualification, where recurring transactions at even positions represent regular monthly financial commitments.
    

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