You are viewing a single comment's thread. Return to all comments →
import re,sys pat=re.compile(r'[aeiouy]') l=sys.stdin.read().splitlines()[1].split() total=0 for word in l: total+=1 if len(re.findall(pat,word))&1 else 2 print(total)
Seems like cookies are disabled on this browser, please enable them to open this website
Words Score
You are viewing a single comment's thread. Return to all comments →