
    Create a function that analyzes a student's written response to determine how many times they correctly used capital letters in their academic writing submission. The function should help teachers efficiently evaluate proper capitalization usage in student assignments by returning the total count of uppercase characters in the submitted text.
    

    
def upper_ctr(str):
    """
    Create a function that analyzes a student's written response to determine how many times they correctly used capital letters in their academic writing submission. The function should help teachers efficiently evaluate proper capitalization usage in student assignments by returning the total count of uppercase characters in the submitted text.
    

    """
def upper_ctr(str):
    """
    Create a function that analyzes a student's written response to determine how many times they correctly used capital letters in their academic writing submission. The function should help teachers efficiently evaluate proper capitalization usage in student assignments by returning the total count of uppercase characters in the submitted text.
    

    """
    upper_ctr = 0
    for i in range(len(str)):
        if str[i] >= 'A' and str[i] <= 'Z':
            upper_ctr += 1
        return upper_ctr