You are viewing a single comment's thread. Return to all comments →
i, words = input(), input() def score_words(words): vowels=["a","e","i","o","u","y"] words = words.split() score = 0 for word in words: vowelcount = 0 for char in word: if char in vowels: vowelcount +=1 if vowelcount % 2 == 0: score += 2 else: score += 1 print(score) score_words(words)
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 →