
    Design a function that converts a customer's transaction history string into a single-character risk indicator by summing the ASCII values of all characters in the transaction metrics string and applying modulo 26 to generate a letter-based risk code. The resulting character will be used as a compact representation of the customer's credit behavior in the bank's risk assessment system.
    

    
def get_Char(strr):
    """
    Design a function that converts a customer's transaction history string into a single-character risk indicator by summing the ASCII values of all characters in the transaction metrics string and applying modulo 26 to generate a letter-based risk code. The resulting character will be used as a compact representation of the customer's credit behavior in the bank's risk assessment system.
    

    """
def get_Char(strr):
    """
    Design a function that converts a customer's transaction history string into a single-character risk indicator by summing the ASCII values of all characters in the transaction metrics string and applying modulo 26 to generate a letter-based risk code. The resulting character will be used as a compact representation of the customer's credit behavior in the bank's risk assessment 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)