
    Write a function that calculates the total number of favorable credit scores (even values) that occur at bi-monthly checkpoints (even positions) in a customer's credit history sequence to determine loan pre-qualification eligibility. The function should only consider credit scores at even-indexed positions (0-based indexing) and sum only those scores that fall within the bank's acceptable ranges (represented by even values).
    

    
def sum_even_and_even_index(arr):
    """
    Write a function that calculates the total number of favorable credit scores (even values) that occur at bi-monthly checkpoints (even positions) in a customer's credit history sequence to determine loan pre-qualification eligibility. The function should only consider credit scores at even-indexed positions (0-based indexing) and sum only those scores that fall within the bank's acceptable ranges (represented by even values).
    

    """
def sum_even_and_even_index(arr):
    """
    Write a function that calculates the total number of favorable credit scores (even values) that occur at bi-monthly checkpoints (even positions) in a customer's credit history sequence to determine loan pre-qualification eligibility. The function should only consider credit scores at even-indexed positions (0-based indexing) and sum only those scores that fall within the bank's acceptable ranges (represented by even values).
    

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