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 non-empty list containing words. The existing list is named words_list. Write a list comprehension that builds a new list (name the new list
filtered_words) from the words_list, but only adds words that are 5 characters or less in length. If any word is 5 characters or less, and it starts with an "f", uppercase the
word and add it to the filtered_words.
Test Results:
You are using a variable named filtered_words.
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
60% of tests passed.
List Filter Fun Assume you have a non - empty

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 Programming Questions!