Question: The code below is supposed to define a function that counts the number of words that end in a letter that is a consonant. When
The code below is supposed to define a function that counts the number of words that end in a letter that is a consonant. When the function is called with the given argument the output should be 4 . Fill in the blanks. def countEndswithConsonant counter =0 vowels =1 for word in sequence: if word! ] not in vowels: return tup = ('there', 'are', 'not', 'way', 'too', 'many', 'words') print (countEndswithConsonant (tup))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
