<s> def break_words ( stuff ) : <EOL> """<STR_LIT>""" <EOL> words = stuff . split ( '<STR_LIT:U+0020>' ) <EOL> return words <EOL> def sort_words ( words ) : <EOL> """<STR_LIT>""" <EOL> return sorted ( words ) <EOL> def print_first_word ( words ) : <EOL> """<STR_LIT>""" <EOL> word = words . pop ( <NUM_LIT:0> ) <EOL> print word <EOL> def print_last_word ( words ) : <EOL> """<STR_LIT>""" <EOL> word = words . pop ( - <NUM_LIT:1> ) <EOL> print word <EOL> def sort_sentence ( sentence ) : <EOL> """<STR_LIT>""" <EOL> words = break_words ( sentence ) <EOL> return sort_words ( words ) <EOL> def print_first_and_last ( sentence ) : <EOL> """<STR_LIT>""" <EOL> words = break_words ( sentence ) <EOL> print_first_word ( words ) <EOL> print_last_word ( words ) <EOL> def print_first_and_last_sorted ( sentence ) : <EOL> """<STR_LIT>""" <EOL> words = sort_sentence ( sentence ) <EOL> print_first_word ( words ) <EOL> print_last_word ( words ) <EOL> """<STR_LIT>""" </s>
