<doocs>1945.Sum of Digits of String After Convert_1.py
def getLucky( s: str, k: int) -> int:
    s = ''.join([str(ord(c) - ord('a') + 1) for c in s])
    for _ in range(k):
        t = 0
        for c in s:
            t += ord(c) - ord('0')
        s = str(t)
    return int(s)
def sample_funcname ( var_0 : str , var_2 : int ) -> int :
    var_0 = ''.join ( [ str ( ord ( var_7 ) - ord ( 'a' ) + 1 ) for var_7 in var_0 ] )
    for var_11 in range ( var_2 ) :
        var_13 = 0
        for var_7 in var_0 :
            var_13 += ord ( var_7 ) - ord ( '0' )
        var_0 = str ( var_13 )
    return int ( var_0 )
