Question: Write a function that will take a single list argument with a minimum of 7 words. The purpose of the function is to find any

Write a function that will take a single list argument with a minimum of 7 words. The purpose of the function is to find any words with three letters and move them to the front of the list. Return the new list to the caller. For example if the list was: AAAA,BBB,CC,DDD,EEEE,FFFF,GGG the new list would be: BBB,DDD,GGG,AAAA,CC,EEEE,FFFF

Now write a script that asks the user for a sentence with minimum of 7 words, using negative logic, keep asking until they provide a sentence with 7 words. Once provided, pass the sentence as a list to the function to test its operation, print the return value to ensure it is working properly. IN PYTHON

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!