Question: Question 12 (20 points) Write a function named count Vowels. Input:text, a string consisting of lower case letters and white space Return:a dictionary in which

Question 12 (20 points) Write a function named count Vowels. Input:text, a string consisting of lower case letters and white space Return:a dictionary in which each word in text is a key and the corresponding value is the number of vowels in that word. The letters a, e, i, o and u are the vowels. For example, the following would be correct output. abe"government of the people by the people for the people shall not perish" print (countVowels(abe)) 'of' 1, 'by' 0, 'for': 1, 'government': 3, 'the'1, 'perish': 2, 'people: 3, 'not': 1, 'shall': 1)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
