
    Write a function that generates a single-character reference code for patient records by summing the ASCII values of all characters in the patient's medical record identifier (containing department code, admission date, and treatment type) and taking modulo 26 of the result. The resulting character will serve as a quick reference index in the hospital's database tracking system.
    

    
def get_Char(strr):
    """
    Write a function that generates a single-character reference code for patient records by summing the ASCII values of all characters in the patient's medical record identifier (containing department code, admission date, and treatment type) and taking modulo 26 of the result. The resulting character will serve as a quick reference index in the hospital's database tracking system.
    

    """
def get_Char(strr):
    """
    Write a function that generates a single-character reference code for patient records by summing the ASCII values of all characters in the patient's medical record identifier (containing department code, admission date, and treatment type) and taking modulo 26 of the result. The resulting character will serve as a quick reference index in the hospital's database tracking system.
    

    """
    summ = 0
    for i in range(len(strr)):
        summ += ord(strr[i]) - ord('a') + 1
    if summ % 26 == 0:
        return ord('z')
    else:
        summ = summ % 26
        return chr(ord('a') + summ - 1)