Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions

Question

What are the best practices for managing a large software project?

Answered: 1 week ago

Question

How does clustering in unsupervised learning help in data analysis?

Answered: 1 week ago

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago