You are viewing a single comment's thread. Return to all comments →
import re vovels = '[aeiouy]' _ = int(input()) score = 0 for word in input().split(): num_vovels = len(word) - len(re.sub(vovels, "", word)) if num_vovels % 2 == 0: score += 2 else: score += 1 print(score)
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 →