3 Answers
+ 2
inp = 'AlohaMyNameIsBudi' # it's your input
arr = ['a', 'e', 'i', 'o', 'u'] # it's your array
inp = inp.lower() # lower() is making all letters are small
for x in arr: # for every item in array
count = 0 # this variable will count the number of matches
for y in inp: # for every item in input
if x == y: # if the values are the same
count += 1 # that means count = count + 1
print('{0} ({1})'.format(count, x.upper() + "/" + x)) # upper() makes the capital letter
+ 1
Not problem!
0
waw thank you i try it and it run well, and thanks for the explanation @Ant