Page 1 of 1

vowelIndex Write a function vowelIndex that accepts a word (a str ) as an argument and returns the index of the first

Posted: Mon May 09, 2022 7:00 am
by answerhappygod
vowelIndex

Write a function vowelIndex that accepts a word (a str ) as an argument and returns the index

of the first vowel in the word. If there is no vowel, -1 is returned. For this problem, both upper

and lower case vowels count, and 'y' is not considered to be a vowel.