You are viewing a single comment's thread. Return to all comments →
def score_words(words): a = ['a', 'e', 'i', 'o', 'u','y'] b = [] for i in words: c = 0 for j in i: if j in a: c += 1 if c %2 == 0: b.append(2) else: b.append(1) return sum(b)
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 →