Question
PYTHON 3 Question 4: Find Vowels Write a function that takes as input a string and returns a list of the index positions of all
PYTHON 3
Question 4: Find Vowels Write a function that takes as input a string and returns a list of the index positions of all the vowels in the word. A vowel is defined as any letter in "aeiouAEIOU". Use this function in a program that prompts the user for a word or phrase and outputs the index positions of all the vowels. Make your program user friendly. You must NOT print the index positions as a list. Instead, the index positions should be printed one per line as shown below.
For example, your program may execute as follows:
Please enter a word (or phrase) and I will tell you where the vowels are: Hello WORLD!!
The vowels are at positions:
1
4
7
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started