You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
440 B
16 lines
440 B
import ex25
|
|
sentence = "All good things come to those who wait."
|
|
words = ex25.break_words(sentence)
|
|
words
|
|
sorted_words = ex25.sort_words(words)
|
|
sorted_words
|
|
ex25.print_first_word(words)
|
|
ex25.print_last_word(words)
|
|
words
|
|
ex25.print_first_word(sorted_words)
|
|
ex25.print_last_word(sorted_words)
|
|
sorted_words
|
|
sorted_words = ex25.sort_sentence(sentence)
|
|
sorted_words
|
|
ex25.print_first_and_last(sentence)
|
|
ex25.print_first_and_last_sorted(sentence)
|
|
|