Question 3
The following pseudocode is executed using the "Words" dataset and explode(X) returns the list of letters in the word X. For example explode("apple") will return ['a', 'p', 'p', 'l', 'e']. What will cnt represent at the end of the execution? Note: isVowel(c) returns True if c is a vowel, False otherwise. isConsonant(c) returns True if c is a consonant, False otherwise.
Number of words with at least one vowel followed immediately by another vowel.
Number of words with at least one consonant followed immediately by a vowel.
Number of words with at least one vowel followed immediately by a consonant.
Number of words where the first letter is a vowel and the last is a consonant.