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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!