I need help ASAP!!!

Write a program that asks a user for their first name and then tells them which vowels are found in it. If a vowel is found, also include the first index of the letter.


For example, if a user inputs the following:


What is your first name?: Michaelangelo

The following output should be given:


There is an a in your name, first found at index 4

There is an e in your name, first found at index 5

There is an i in your name, first found at index 1

There is an o in your name, first found at index 12

Note: You should use a function in your program.

Respuesta :

# reading name from user

name = input("What is your first name?: ")

# looping through each vowel

for x in "aeiou":

   # checking x in in name

   if x in name:

       # printing outpt

       print("There is an",x,"in your name, first found at index",name.index(x))

Ver imagen Talanat

Refer to the attachment

Ver imagen Аноним
Ver imagen Аноним
ACCESS MORE
EDU ACCESS