hey guys I got this question on a test , has been bugging me for days now . best i could come up with was to convert it into sets and use set intersection , but that gives consnants too plus it does not tell how many times the vowel is occuring .
a="Asish"
b="Sankar"
a = list(a.lower())
#print(a)
b = list(b.lower())
a = set(a)
b = set(b)
print(a &b)
expected output: number of matching vowel cases are :0
sample input 2- a=Asish b=sashank sample output- a number of times matching vowels occured - 1
My Approach will be like this:
Output: