Vowel and no vowel X21947


Statement
 

pdf   zip

Write a function @vowel_novowel(f)@ that given a list ff of nonempty strings of lowercase letters, returns two lists. The first one is formed by the words in ff that contain some vowel . At the second one there are the words in ff that have no vowel. The order of appearance of the words in each of the two resulting lists must preserve the original order.

Sample session

Sample session
>>> vowel_novowel(['lp', 'compact', 'tgv', 'train', 'phd', 'degree'])
(['compact', 'train', 'degree'], ['lp', 'tgv', 'phd'])
>>> vowel_novowel(['lp', 'tgv', 'phd'])
([], ['lp', 'tgv', 'phd'])
>>> vowel_novowel(['one' , 'two'])
(['one', 'two'], [])
Information
Author
ProAl
Language
English
Official solutions
Python
User solutions
Python