
    Write a function that evaluates a student's pattern recognition ability by counting how many characters in their response sequence match the positions of those same characters in the standard reference sequence, regardless of letter case. For example, if a student's response pattern is "AbcdeF", the function would check how many of these letters appear in their corresponding positions in the standard reference sequence "ABCDEFGHIJKLMNOPQRSTUVWXYZ".
    

    
def count_char_position(str1):
    """
    Write a function that evaluates a student's pattern recognition ability by counting how many characters in their response sequence match the positions of those same characters in the standard reference sequence, regardless of letter case. For example, if a student's response pattern is "AbcdeF", the function would check how many of these letters appear in their corresponding positions in the standard reference sequence "ABCDEFGHIJKLMNOPQRSTUVWXYZ".
    

    """
def count_char_position(str1):
    """
    Write a function that evaluates a student's pattern recognition ability by counting how many characters in their response sequence match the positions of those same characters in the standard reference sequence, regardless of letter case. For example, if a student's response pattern is "AbcdeF", the function would check how many of these letters appear in their corresponding positions in the standard reference sequence "ABCDEFGHIJKLMNOPQRSTUVWXYZ".
    

    """
    count_chars = 0
    for i in range(len(str1)):
        if i == ord(str1[i]) - ord('A') or i == ord(str1[i]) - ord('a'):
            count_chars += 1
    return count_chars