Question: CSCI120D (Fall 2018) Introduction to Computer Science and Programming I (Python) Lab 7D on Lists, Strings and Functions with Repetition Lists, Strings and Functions with

 CSCI120D (Fall 2018) Introduction to Computer Science and Programming I (Python)Lab 7D on Lists, Strings and Functions with Repetition Lists, Strings and

CSCI120D (Fall 2018) Introduction to Computer Science and Programming I (Python) Lab 7D on Lists, Strings and Functions with Repetition Lists, Strings and Functions with Repetition five letter word with letter 'a' in middle. Return to: 22 October -28... Define a function called get_my_words) which is sent an empty list called mylist. In the function the user is repeatedly asked to enter a word, until they enter the word "stopnow" which is the signal (aka sentinel) that you wish to stop entering words. As each word is entered it is added (appended) to the list. The list is then returned back to the main program. The list is then sent to another function called analyse_list(), which goes through the list of words one by one and if the word is a 5-letter word which has the letter "a" as the middle letter (upper case or lower case) then the word is appended to another list called five_a. When all words have been processed in the first ist, the five_a list is then returned to the main program. In the main program, every word in the five_a list is printed to the screen. The program should repeat at the user's request. Add the usual comments and test runs to your code An example run might look like this: (to make things clearer, program output is shown in bold blue font, user input is black BUT do NOT attempt to change any text colors in your program.) This program finds all 5-letter words which have the letter "a" as the middle character, e.g. Frank Enter words one by one and enter the word stopnow when you've finished

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!