What's wrong with my code ? : (


#1

class Solution:
# @param A : string
# @return an integer
def solve(self, A):
v = [‘a’, ‘e’, ‘i’, ‘o’, ‘u’]
s = list(A)
vc = s.count(‘a’)+s.count(‘e’)+s.count(‘i’)+s.count(‘o’)+s.count(‘u’)
cc = len(s)-vc
count = 0
for i in range(len(s)):
if s[i] in v:
count+=cc
vc-=1
else:
count+=vc
cc-=1

    return count