Question: Python plz. Write a recursive function named get_vowels (word) that takes a word as a parameter and returns all vowels in the given parameter string.
Python plz.
Write a recursive function named get_vowels (word) that takes a word as a parameter and returns all vowels in the given parameter string. The function should return an empty string if there are no vowels in the parameter string. Note: This function has to be recursive; you are not : allowed to use loops to solve this problem! For example: Test Result eo s = 'hello' print(get_vowels(s)) eooou S = 'yellow colour' print(get_vowels(s))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
