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 = ' for word in sequence: if word[ not in vowels: counter += tup = ('there', 'are', 'not', 'way', 'too', 'many', 'words') return (countendswithconsonant (tup))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
