moduleEx25# This function will break up words for us.defEx25.break_words(stuff)words=stuff.split(' ')returnwordsend# Sort the words.defEx25.sort_words(words)returnwords.sortend# Prints the first word after shifting it off.defEx25.print_first_word(words)word=words.shiftputswordend# Prints the last word after poping it off.defEx25.print_last_word(words)word=words.popputswordend# Takes in a full sentence and returns the sorted words.defEx25.sort_sentence(sentence)words=Ex25.break_words(sentence)returnEx25.sort_words(words)end# Prints the first and last words of the sentence.defEx25.print_first_and_last(sentence)words=Ex25.break_words(sentence)Ex25.print_first_word(words)Ex25.print_last_word(words)end# Sorts the words then prints the first and last on.defEx25.print_first_and_last_sorted(sentence)words=Ex25.sort_sentence(sentence)Ex25.print_last_word(words)Ex25.print_last_word(words)endend