Question: Python: Recursion Write a function called most_vowels(words) that takes a list of strings called words and returns the string in the list with the most
Python: Recursion
Write a function called most_vowels(words) that takes a list of strings called words and returns the string in the list with the most vowels. You may assume that the strings only contain lowercase letters. For example:
>>> most_vowels(['vowels', 'are', 'amazing', 'things']) result: 'amazing' >>> most_vowels(['obama', 'bush', 'clinton']) result: 'obama'
The function that you write must use a helper function along with either a list comprehension or recursion. In either case, you should put the helper function in your ps3pr2.py file, just above the definition of your function for this problem.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
