def split_trailing_whitespace(word):
 stripped_length = len(word.rstrip())
 return (word[0:stripped_length], word[stripped_length:])

def split_trailing_whitespace ( word ) : stripped_length = len ( word . rstrip ( ) ) return ( word [ 0 : stripped_length ] , word [ stripped_length : ] )
this function takes a word .