Words Score

  • + 0 comments
    import re
    n = int(input())
    s = input().split()
    ex = r'[aeiouy]'
    score = 0
    for word in s:
        a = len(re.findall(ex,word))
        if a%2==0:
            score +=2
        else:
            score +=1
    				
            
    print(score)