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
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