Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Solution def vowelIndex word define the vowels as a set o... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microeconomics An Intuitive Approach with Calculus

Authors: Thomas Nechyba

1st edition

538453257, 978-0538453257

More Books

Students also viewed these Programming questions

Question

What does non-recourse financing mean?

Answered: 1 week ago