You are viewing a single comment's thread. Return to all comments →
import re S = input() a=map(lambda x: x.group(),re.finditer(r'(?<=[qwrtypsdfghjklzxcvbnmQWRTYPSDFGHJKLZXCVBNM])([A,E,I,O,U,a,e,i,o,u]{2,})(?=[qwrtypsdfghjklzxcvbnmQWRTYPSDFGHJKLZXCVBNM])',S)) q=list(a) k=bool(q) if k==False: print('-1') else: for t in q: print(t)
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 →