Module FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num Print NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Num Print NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad decorator_list Expr Str
N/A break_words N/A N/A stuff N/A N/A N/A This function will break up words for us. N/A words N/A N/A stuff split N/A words N/A sort_words N/A N/A words N/A N/A N/A Sorts the words. N/A N/A sorted words N/A print_first_word N/A N/A words N/A N/A N/A Prints the first word after popping it off. N/A word N/A N/A words pop 0 N/A word N/A print_last_word N/A N/A words N/A N/A N/A Prints the last word after popping it off. N/A word N/A N/A words pop -1 N/A word N/A sort_sentence N/A N/A sentence N/A N/A N/A Takes in a full sentence and returns the sorted words. N/A words N/A break_words sentence N/A N/A sort_words words N/A print_first_and_last N/A N/A sentence N/A N/A N/A Prints the first and last words of the sentence. N/A words N/A break_words sentence N/A N/A print_first_word words N/A N/A print_last_word words N/A print_first_and_last_sorted N/A N/A sentence N/A N/A N/A Sorts the words then prints the first and last one. N/A words N/A sort_sentence sentence N/A N/A print_first_word words N/A N/A print_last_word words N/A N/A 
$ python
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import exercise25
>>> sentence = "All good things come to those who wait"
>>> words = exercise25.break_words(sentence)
>>> words
['All', 'good', 'things', 'come', 'to', 'those', 'who', 'wait']
>>> sorted_words = exercise25.sort_words(words)
>>> sorted_words
['All', 'come', 'good', 'things', 'those', 'to', 'wait', 'who']
>>> exercise25.print_first_word(words)
All
>>> exercise25.print_last_word(words)
wait
>>> words
['good', 'things', 'come', 'to', 'those', 'who']
>>> exercise25.print_first_word(sorted_words)
All
>>> exercise25.print_last_word(sorted_words)
who
>>> sorted_words
['come', 'good', 'things', 'those', 'to', 'wait']
>>> sorted_words = exercise25.sort_sentence(sentence)
>>> sorted_words
['All', 'come', 'good', 'things', 'those', 'to', 'wait', 'who']
>>> exercise25.print_first_and_last(sentence)
All
wait
>>> exercise25.print_first_and_last_sorted(sentence)
All
who
>>>
$ python
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import exercise25
>>> sentence = "All good things come to those who wait"
>>> words = exercise25.break_words(sentence)
>>> words
['All', 'good', 'things', 'come', 'to', 'those', 'who', 'wait']
>>> sorted_words = exercise25.sort_words(words)
>>> sorted_words
['All', 'come', 'good', 'things', 'those', 'to', 'wait', 'who']
>>> exercise25.print_first_word(words)
All
>>> exercise25.print_last_word(words)
wait
>>> words
['good', 'things', 'come', 'to', 'those', 'who']
>>> exercise25.print_first_word(sorted_words)
All
>>> exercise25.print_last_word(sorted_words)
who
>>> sorted_words
['come', 'good', 'things', 'those', 'to', 'wait']
>>> sorted_words = exercise25.sort_sentence(sentence)
>>> sorted_words
['All', 'come', 'good', 'things', 'those', 'to', 'wait', 'who']
>>> exercise25.print_first_and_last(sentence)
All
wait
>>> exercise25.print_first_and_last_sorted(sentence)
All
who
