Question: 2. N/A Write a function vowel_indices that takes a string as a parameter and returns a list of the indices of all vowels in the

 2. N/A Write a function vowel_indices that takes a string as

2. N/A Write a function vowel_indices that takes a string as a parameter and returns a list of the indices of all vowels in the string. A vowel is one of a, e, i, o, or u. Capitalization should not matter when finding the indices, meaning that upper-and lowercase vowels should have their indices accumulated into the list. If there are no vowels in the string, the empty list should be returned. A correct solution to this problem will use an indexed loop (i.e. one involving a call to range to get the indices of the string) and not use the index function or equivalent. >s> vowel_indices("the lazy fox was All over the hill") 12, 5, 10, 14, 17, 21, 23, 28, 31]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!