You have to program the function below.
Write a function @vowel_consonant(f)@ that given a list of strings of lowercase letters, returns two lists. The first one is formed by words in that finish with a vowel. At the second one there are the words in finished with a consonant. The order of appearance of the words in each of the two resulting lists must preserve the original order.
The function counts 100 points.
>>> vowel_consonant(['five', 'six', 'seven', 'one', 'two']) (['five', 'one', 'two'], ['six', 'seven']) >>> vowel_consonant(['cow', 'dog', 'cat']) ([], ['cow', 'dog', 'cat']) >>> vowel_consonant(['blue', 'white']) (['blue', 'white'], [])