Question: in python answer Question 9 Create a function called collector that will extract all vowels from a string variable called w, and return those vowels

Create a function called collector that will extract all vowels from a string variable called w, and return those vowels as a new string in sequential order. If this string variable does not have vowels, then we will return an empty string . Example 1 Input: "hello" output: "eo" Reasion: "e" and " 0were the only vowels in the input. Example 2 Input? "rhythyms" Output: = Reasion: No vowels existed within this input, This tests your understanding of: - Variable Assignment - Loops - Conditionals - Functions [1] def collector(w): pass [1] \# this should return "eo" print (collector ("he110")) Q9 Vowel Collector Complexity What is the time-complexity of the function collector that you've created above? Uncomment the line of code that describes the correct big-o for time complexity. This tests your understanding of: - Big-0 Notation [1]=print("o(1)n)=print("o(n))*print("o(n))=print("(nn3))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
