Question: please help me with this question. Problem 22: Write a function called reverse_vowels. This function should reverse the vowels in a string (USER INPUT). Any

please help me with this question.

please help me with this question. Problem 22: Write a function called

Problem 22: Write a function called reverse_vowels. This function should reverse the vowels in a string (USER INPUT). Any characters which are not vowels should remain in their original position. You should not consider "y" to be a vowel. Test cases: reverse_vowels("Hello!") # "Holle!" reverse_vowels("Tomatoes") # "Temotaos" reverse_vowels("Reverse Vowels In A String") # "RivArsl Vewols en e Streng" reverse_vowels("aeiou") # "uoiea" reverse_vowels("why try, shy fly?") # "why try, shy fly?&quot

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 Programming Questions!