Question: Question 13 (20 points) Write a function named vowelEndings that takes a string, text, as a parameter The function vowelEndings returns a dictionary d in

Question 13 (20 points) Write a function named vowelEndings that takes a string, text, as a parameter The function vowelEndings returns a dictionary d in which the keys are all the vowels that are the last letter of some word in text. The letters a, e, i, o and u are vowels. No other letter is a vowel. The value corresponding to each key in d is a list of all the words ending with that vowel. No word should appear more than once in a given list. All of the letters in text are lower case. The following is an example of correct output: >>t'today you are you there is no one alive who is you-er than you' >vowelEndings (t) ('u' 'you', 'o'['no', 'who', 'e'are, 'there 'one', 'alive']
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
