Question: Create a function in python called myLower which accepts a string and returns a string where all of the letters have been converted to lowercase.
| Create a function in python called myLower which accepts a string and returns a string where all of the letters have been converted to lowercase. NOTE: You MUST use list comprehension, and do NOT use the built-in string method lower( ). |
| Use LIST COMPREHENSION to solve this: Given a sentence input by the user, create a list of the words that do NOT begin with a vowel. |
| Write a function in python filterWords that takes a list of words and a letter and returns the list of words that dont contain that letter. The function MUST use LIST COMPREHENSION. Ex: wordList = filterWords( [This,is,a,long,list,of,words], i ) print(wordList) #prints [a, long, of, words] because thesewords dont contain an i |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
