<doocs>0824.Goat Latin_1.py
def toGoatLatin( sentence: str) -> str:
    ans = []
    for i, word in enumerate(sentence.split()):
        if word.lower()[0] not in ['a', 'e', 'i', 'o', 'u']:
            word = word[1:] + word[0]
        word += 'ma'
        word += 'a' * (i + 1)
        ans.append(word)
    return ' '.join(ans)
def sample_funcname ( var_0 : str ) -> str :
    var_2 = [ ]
    for var_4 , var_6 in enumerate ( var_0.split ( ) ) :
        if var_6.lower ( ) [ 0 ] not in [ 'a' , 'e' , 'i' , 'o' , 'u' ] :
            var_6 = var_6 [ 1 : ] + var_6 [ 0 ]
        var_6 += 'ma'
        var_6 += 'a' * ( var_4 + 1 )
        var_2.append ( var_6 )
    return ' '.join ( var_2 )
