<s> import exercise25 <EOL> 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> print "<STR_LIT>" <EOL> print '<STR_LIT>' <EOL> poem = """<STR_LIT>""" <EOL> print "<STR_LIT>" <EOL> print poem <EOL> print "<STR_LIT>" <EOL> five = <NUM_LIT:10> - <NUM_LIT:2> + <NUM_LIT:3> - <NUM_LIT:6> <EOL> print "<STR_LIT>" % five <EOL> def secret_formula ( started ) : <EOL> beans = started * <NUM_LIT> <EOL> jars = beans / <NUM_LIT:1000> <EOL> crates = jars / <NUM_LIT:100> <EOL> return beans , jars , crates <EOL> start_point = <NUM_LIT> <EOL> beans , jars , crates = secret_formula ( start_point ) <EOL> print "<STR_LIT>" % start_point <EOL> print "<STR_LIT>" % ( beans , jars , crates ) <EOL> start_point = start_point / <NUM_LIT:10> <EOL> print "<STR_LIT>" <EOL> print "<STR_LIT>" % secret_formula ( start_point ) <EOL> sentence = "<STR_LIT>" <EOL> words = exercise25 . break_words ( sentence ) <EOL> sorted_words = exercise25 . sort_words ( words ) <EOL> print_first_word ( words ) <EOL> print_last_word ( words ) <EOL> print_first_word ( sorted_words ) <EOL> print_last_word ( sorted_words ) <EOL> sorted_words = exercise25 . sort_sentence ( sentence ) <EOL> print sorted_words <EOL> print_first_and_last ( sentence ) <EOL> print_first_and_last_sorted ( sentence ) </s>
