<doocs>1451.Rearrange Words in a Sentence_1.py
def arrangeWords( text: str) -> str:
    words = text.split()
    words[0] = words[0].lower()
    words.sort(key=len)
    words[0] = words[0].title()
    return " ".join(words)
def sample_funcname ( var_0 : str ) -> str :
    var_3 = var_0.split ( )
    var_3 [ 0 ] = var_3 [ 0 ].lower ( )
    var_3.sort ( var_7 = len )
    var_3 [ 0 ] = var_3 [ 0 ].title ( )
    return " ".join ( var_3 )
