Easy python 3 code


#1
indent preformatted text by 4 spaces

def solve(self, A):
vvl = [‘a’, ‘e’, ‘i’, ‘o’, ‘u’, ‘A’, ‘E’, ‘I’, ‘O’, ‘U’]
ind = 0
cnt = 0
for i in range(len(A)):
if A[i] in vvl:
cnt = cnt+ (len(A)-i)
return cnt%10003


#2

why is count statement that way can you explain