Vowel and no vowel X21947


Statement
 

pdf   zip

html

Write a function vowel_novowel(f) that given a list f of nonempty strings of lowercase letters, returns two lists. The first one is formed by the words in f that contain some vowel . At the second one there are the words in f 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
>>> 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