
    Given a string containing encoded hospital metrics data, write a function that calculates a single-character department code by summing the ASCII values of all characters in the input string and taking modulo 26 of the result. This derived department code will be used to optimize bed allocation and patient admission forecasting across hospital units.
    

    
def get_Char(strr):
    """
    Given a string containing encoded hospital metrics data, write a function that calculates a single-character department code by summing the ASCII values of all characters in the input string and taking modulo 26 of the result. This derived department code will be used to optimize bed allocation and patient admission forecasting across hospital units.
    

    """
def get_Char(strr):
    """
    Given a string containing encoded hospital metrics data, write a function that calculates a single-character department code by summing the ASCII values of all characters in the input string and taking modulo 26 of the result. This derived department code will be used to optimize bed allocation and patient admission forecasting across hospital units.
    

    """
    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)