Answered step by step
Verified Expert Solution
Question
1 Approved Answer
python pls Write the recursive function remove_vowels, which takes as its argument a nested list of strings and mutates it - after executing the function,
python pls
Write the recursive function remove_vowels, which takes as its argument a nested list of strings and mutates it - after executing the function, all of the strings in the list should have vowels (which are A, E, I, O, U in this scenario) removed. Upper and lower case letters in strings should be considered the same. Your function should modify the original list, not create a new one. The function should ignore objects of types other than list or string. Strings may contain any variation of characters. For example, consider the list defined below: example = ['He is Boo', ['Boo wears Boots', ['Boo is love'), 'Boo! Halloween!']] After the call remove_vowels (example), the example list should become [HSB', ['Bwrs Bts', ['B s lv'), 'B! Hllwn!']] def remove_vowels (slist: (str or list]) -> NoneStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started