Question: Question 13a (6 Write a function named countVowels that takes one parameter: rsse on unet fo poaned countvowels that takes one parameter: s, a string

 Question 13a (6 Write a function named countVowels that takes one

Question 13a (6 Write a function named countVowels that takes one parameter: rsse on unet fo poaned countvowels that takes one parameter: s, a string that may contain both upper and lower case characters The function countVowels should return the number of vowels in s. The vowels are the letters 'a', 'e', i, 'o, and 'u' For example, the function call countVowels( 'Amen') should return 2. Question 13b (14 points) Write a function named vowe1Frequency that takes one parameter: t, a string The function vowe1Frequency should return a dictionary in which each key is the vowel count for some word in t. The value corresponding to each key is a list of all words having that number of vowels. A word should appear at most once in a given list. Upper and lower case letters are considered the same letter ('Yes' is the same as 'yes'.) The function vowe1Frequency should call the function countVowels for each word in t to find how many vowels it has For example, the following is a correct input/output pair >>> text"Where hunger is ugly where souls are forgotten" >>> print (vowelFrequency (text)) (1: ['is', 'ugly'], 2: ['where', 'hunger, 'souls'are'1, 3: I'forgotten'])

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!