Question: List Filter Fun Assume you have a non - empty list containing words. The existing list is named words _ list. Write a list comprehension
List Filter Fun
Assume you have a nonempty list containing words. The existing list is named wordslist. Write a list comprehension that builds a new list name the new list
filteredwords from the wordslist, but only adds words that are characters or less in length. If any word is characters or less, and it starts with an f uppercase the
word and add it to the filteredwords.
Test Results:
You are using a variable named filteredwords.
You are using a list comprehension to create the list.
Your list comprehension does not build the correct list.
Your list comprehension does not build the correct list.
Your list comprehension correctly builds the list
of tests passed.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
