You are viewing a single comment's thread. Return to all comments →
Simple solution form my side..
string = input() vowels = ['a','e','i','o','u'] result = [] word = '' for item in string: if( item.lower() in vowels): word = word +item else: if(len(word)>=2): result.append(word) word = '' if(len(result) == 0): print(-1) else: for words in result: print(words)
Seems like cookies are disabled on this browser, please enable them to open this website
Re.findall() & Re.finditer()
You are viewing a single comment's thread. Return to all comments →
Simple solution form my side..