Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in python Create a function called collector that will extract all vowels from a string variable called w, and return those vowels as a new
in python
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: "he 110" output: "eo" Reasion: " e" and " o " were the only vowols in the input. Example 2 Input: "rhythyms" Output: = Peasion: No vowels existed within this input, This tests your understanding of: - Variable Assignment - Loops - Conditionals - Functions def collector(w): pass [1] \#this stiould return "eo" print (collector ("hello")) Step 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