Question: language = python The function get_consonants taks a string s as an input, and returns a list of the letters in s except for vowels,

language = python
The function get_consonants taks a string s as an input, and returns a list of the letters in s except for vowels, spaces, commas, and periods. For the purposes of this example, an English vowel is any of the letters ["a", "e", "i", "o", "u" ]. For example: = s = "make it so, number one" print(get_consonants(s)) ["m", "k", "t", "S", "n", "m", "b", "r", "n"] Hint: Consider the following code: = 1 = "a" I not in ["e", "W"]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
