
    Write a function that calculates the total value of even-amount transactions occurring at high-security verification positions in a bank's transaction sequence. The high-security positions are represented by even indices in the transaction list, and only transactions with even amounts at these positions should be included in the sum. This sum helps identify patterns in potentially risky transactions requiring biometric verification.
    

    
def sum_even_and_even_index(arr):
    """
    Write a function that calculates the total value of even-amount transactions occurring at high-security verification positions in a bank's transaction sequence. The high-security positions are represented by even indices in the transaction list, and only transactions with even amounts at these positions should be included in the sum. This sum helps identify patterns in potentially risky transactions requiring biometric verification.
    

    """
def sum_even_and_even_index(arr):
    """
    Write a function that calculates the total value of even-amount transactions occurring at high-security verification positions in a bank's transaction sequence. The high-security positions are represented by even indices in the transaction list, and only transactions with even amounts at these positions should be included in the sum. This sum helps identify patterns in potentially risky transactions requiring biometric verification.
    

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